Replace old visible rooms range with subscriptions in the room list. (#3014)

* Add a SubscriptionTracker actor to RoomProxy.

* Request subscriptions when scrolling rooms.

* Stop unsubscribing in preparation for Simplified Sliding Sync.
This commit is contained in:
Doug
2024-07-08 14:32:13 +01:00
committed by GitHub
parent bf9e1d614f
commit a1329d9d54
6 changed files with 31 additions and 58 deletions
@@ -46,7 +46,15 @@ enum ClientProxyError: Error {
}
enum SlidingSyncConstants {
static let defaultTimelineLimit: UInt = 20
static let defaultTimelineLimit: UInt32 = 20
static let maximumVisibleRangeSize = 30
static let defaultRequiredState = [
RequiredState(key: "m.room.name", value: ""),
RequiredState(key: "m.room.topic", value: ""),
RequiredState(key: "m.room.avatar", value: ""),
RequiredState(key: "m.room.canonical_alias", value: ""),
RequiredState(key: "m.room.join_rules", value: "")
]
}
/// This struct represents the configuration that we are using to register the application through Pusher to Sygnal