Revert "Remove fuzzy searching entirely because of performance issues"

This reverts commit e86f65ad2d.
This commit is contained in:
Stefan Ceriu
2023-08-21 16:21:09 +03:00
committed by Stefan Ceriu
parent 65256bf4ab
commit ff074e3fae
9 changed files with 54 additions and 11 deletions
@@ -79,12 +79,14 @@ struct HomeScreenViewState: BindableState {
var selectedRoomID: String?
var fuzzySearchEnabled: Bool
var visibleRooms: [HomeScreenRoom] {
if roomListMode == .skeletons {
return placeholderRooms
}
if bindings.searchQuery.isEmpty {
if fuzzySearchEnabled || bindings.searchQuery.isEmpty {
return rooms
}