mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Tweaks timeline pagination sizes
We need at least one screen of content when opening a room. We used 30 on EI for big devices.
This commit is contained in:
@@ -21,7 +21,7 @@ typealias RoomScreenViewModelType = StateStoreViewModel<RoomScreenViewState, Roo
|
|||||||
|
|
||||||
class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol {
|
class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol {
|
||||||
private enum Constants {
|
private enum Constants {
|
||||||
static let backPaginationPageSize: UInt = 20
|
static let backPaginationPageSize: UInt = 50
|
||||||
}
|
}
|
||||||
|
|
||||||
private let timelineController: RoomTimelineControllerProtocol
|
private let timelineController: RoomTimelineControllerProtocol
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class ClientProxy: ClientProxyProtocol {
|
|||||||
let slidingSyncBuilder = try client.slidingSync().homeserver(url: ServiceLocator.shared.settings.slidingSyncProxyBaseURLString)
|
let slidingSyncBuilder = try client.slidingSync().homeserver(url: ServiceLocator.shared.settings.slidingSyncProxyBaseURLString)
|
||||||
|
|
||||||
let visibleRoomsView = try SlidingSyncViewBuilder()
|
let visibleRoomsView = try SlidingSyncViewBuilder()
|
||||||
.timelineLimit(limit: 10)
|
.timelineLimit(limit: 30)
|
||||||
.requiredState(requiredState: [RequiredState(key: "m.room.avatar", value: ""),
|
.requiredState(requiredState: [RequiredState(key: "m.room.avatar", value: ""),
|
||||||
RequiredState(key: "m.room.encryption", value: "")])
|
RequiredState(key: "m.room.encryption", value: "")])
|
||||||
.name(name: "CurrentlyVisibleRooms")
|
.name(name: "CurrentlyVisibleRooms")
|
||||||
|
|||||||
Reference in New Issue
Block a user