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) {
|
||||
case .success:
|
||||
return .success(())
|
||||
case .failure:
|
||||
case .failure(let error):
|
||||
if error == .noMoreMessagesToBackPaginate {
|
||||
return .success(())
|
||||
}
|
||||
return .failure(.generic)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user