mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +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) {
|
||||
case .success:
|
||||
return .success(())
|
||||
case .failure:
|
||||
case .failure(let error):
|
||||
if error == .noMoreMessagesToBackPaginate {
|
||||
return .success(())
|
||||
}
|
||||
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