mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
#93: Add a sync limit of 20 and prefill rooms when loading the last message.
Update the SDK to 1.0.13-alpha.
This commit is contained in:
@@ -141,7 +141,8 @@ class RoomSummary: RoomSummaryProtocol {
|
||||
return
|
||||
}
|
||||
|
||||
switch await roomProxy.paginateBackwards(count: 1) {
|
||||
// Pre-fill the room with some messages and use the last message in the response.
|
||||
switch await roomProxy.paginateBackwards(count: UInt(ClientProxy.syncLimit)) {
|
||||
case .success:
|
||||
lastMessage = await eventBriefFactory.buildEventBriefFor(message: roomProxy.messages.last)
|
||||
case .failure(let error):
|
||||
|
||||
Reference in New Issue
Block a user