diff --git a/ElementX/Sources/Services/Client/ClientProxy.swift b/ElementX/Sources/Services/Client/ClientProxy.swift index 9128829fe..c4830a82b 100644 --- a/ElementX/Sources/Services/Client/ClientProxy.swift +++ b/ElementX/Sources/Services/Client/ClientProxy.swift @@ -94,6 +94,7 @@ class ClientProxy: ClientProxyProtocol { let slidingSync = try slidingSyncBuilder .addView(v: slidingSyncView) .withCommonExtensions() + .coldCache(name: "ElementX") .build() self.roomSummaryProvider = RoomSummaryProvider(slidingSyncController: slidingSync, diff --git a/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift b/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift index a2957230b..c58d1b92c 100644 --- a/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift +++ b/ElementX/Sources/Services/Room/RoomSummary/RoomSummaryProvider.swift @@ -81,6 +81,12 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol { let weakProvider = WeakRoomSummaryProviderWrapper() + rooms = slidingSyncView.currentRoomsList().map { roomListEntry in + buildSummaryForRoomListEntry(roomListEntry) + } + + roomListPublisher.send(rooms) // didSet not called from initialisers + weakProvider.stateUpdatePublisher .map(RoomSummaryProviderState.init) .subscribe(statePublisher)