mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fix interminable room directory search next page loading loops when results don't fill the screen
This commit is contained in:
committed by
Stefan Ceriu
parent
dc9eb868d6
commit
261cb366a7
+4
@@ -104,6 +104,10 @@ class RoomDirectorySearchScreenViewModel: RoomDirectorySearchScreenViewModelType
|
||||
}
|
||||
|
||||
private func loadNextPage() {
|
||||
guard !state.isLoading else {
|
||||
return
|
||||
}
|
||||
|
||||
Task {
|
||||
state.isLoading = true
|
||||
let _ = await roomDirectorySearchProxy.nextPage()
|
||||
|
||||
Reference in New Issue
Block a user