Revert "Adopt fuzzy searching through the RoomListService's dynamic filter" because of performance issues

This reverts commit e13e97400b.
This commit is contained in:
Stefan Ceriu
2023-08-13 19:38:42 +03:00
parent e13e97400b
commit c9d12122bf
7 changed files with 17 additions and 28 deletions
@@ -79,9 +79,8 @@ struct HomeScreen: View {
.onReceive(scrollViewAdapter.isScrolling) { _ in
updateVisibleRange()
}
.onChange(of: context.searchQuery) { _ in
context.send(viewAction: .updatedSearchQuery)
.onChange(of: context.searchQuery) { searchQuery in
guard searchQuery.isEmpty else { return }
// Dispatch allows the view to update after changing the query
DispatchQueue.main.async { updateVisibleRange() }
}