mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix incorrect visible room ranges: correctly remove duplicates and ignore appearance changes while filtering
This commit is contained in:
committed by
Stefan Ceriu
parent
9fe81d977c
commit
cc6201ed31
@@ -54,9 +54,13 @@ struct HomeScreen: View {
|
||||
}
|
||||
}
|
||||
.onAppear {
|
||||
// Ignore while filtering rooms
|
||||
guard context.searchQuery.isEmpty else { return }
|
||||
visibleItemIdentifiers.insert(room.id)
|
||||
}
|
||||
.onDisappear {
|
||||
// Ignore while filtering rooms
|
||||
guard context.searchQuery.isEmpty else { return }
|
||||
visibleItemIdentifiers.remove(room.id)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user