mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Removed the 50ms delay from updating the filters. (#2447)
This commit is contained in:
@@ -116,7 +116,7 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
|||||||
// Don't capture the values here as combine behaves incorrectly and `isSearchFieldFocused` is sometimes
|
// Don't capture the values here as combine behaves incorrectly and `isSearchFieldFocused` is sometimes
|
||||||
// turning to true after cancelling the search. Read them directly from the state in the updateFilter
|
// turning to true after cancelling the search. Read them directly from the state in the updateFilter
|
||||||
// method instead on the next run loop to make sure they're up to date.
|
// method instead on the next run loop to make sure they're up to date.
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.05) {
|
DispatchQueue.main.async {
|
||||||
self.updateFilter()
|
self.updateFilter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user