mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix stuck timeline pagination because of too many membership events
Requires https://github.com/matrix-org/matrix-rust-sdk/pull/1314
This commit is contained in:
@@ -72,8 +72,12 @@ class RoomTimelineProvider: RoomTimelineProviderProtocol {
|
||||
|
||||
MXLog.info("Started back pagination request")
|
||||
switch await roomProxy.paginateBackwards(count: count) {
|
||||
case .success:
|
||||
MXLog.info("Finished back pagination request")
|
||||
case .success(let numUpdates):
|
||||
MXLog.info("Finished back pagination request. Got \(numUpdates) updates")
|
||||
|
||||
if numUpdates == 0 {
|
||||
backPaginationPublisher.send(false)
|
||||
}
|
||||
return .success(())
|
||||
case .failure(let error):
|
||||
MXLog.error("Failed back pagination request with error: \(error)")
|
||||
|
||||
Reference in New Issue
Block a user