Add hard limit of 50 rooms to sliding sync and the home screen

This commit is contained in:
Stefan Ceriu
2022-11-24 17:31:04 +02:00
committed by Stefan Ceriu
parent 5c621f0587
commit f18c829353

View File

@@ -88,7 +88,8 @@ class ClientProxy: ClientProxyProtocol {
.requiredState(requiredState: [RequiredState(key: "m.room.avatar", value: ""),
RequiredState(key: "m.room.encryption", value: "")])
.name(name: "HomeScreenView")
.syncMode(mode: .fullSync)
.syncMode(mode: .selective)
.addRange(from: 0, to: 50) // FIXME: Replace this with a dynamic solution
.build()
let slidingSync = try slidingSyncBuilder