mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Avoid the "Failed to load messages" popup when all messages have been loaded
This commit is contained in:
@@ -82,7 +82,10 @@ class RoomTimelineController: RoomTimelineControllerProtocol {
|
|||||||
switch await timelineProvider.paginateBackwards(count) {
|
switch await timelineProvider.paginateBackwards(count) {
|
||||||
case .success:
|
case .success:
|
||||||
return .success(())
|
return .success(())
|
||||||
case .failure:
|
case .failure(let error):
|
||||||
|
if error == .noMoreMessagesToBackPaginate {
|
||||||
|
return .success(())
|
||||||
|
}
|
||||||
return .failure(.generic)
|
return .failure(.generic)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Avoid the "Failed to load messages" popup when all messages have been loaded.
|
||||||
Reference in New Issue
Block a user