Fix room list service cold cache support. Make sure we dispatch the initial room list and use it for computing the home screen state

This commit is contained in:
Stefan Ceriu
2023-08-09 17:24:39 +03:00
committed by Stefan Ceriu
parent f649d362f5
commit 77061c4d7e
2 changed files with 10 additions and 4 deletions
@@ -85,6 +85,9 @@ class RoomSummaryProvider: RoomSummaryProviderProtocol {
buildSummaryForRoomListEntry(roomListEntry)
}
// Manually call it here as the didSet doesn't work from constructors
roomListSubject.send(rooms)
let stateUpdatesSubscriptionResult = try roomList.loadingState(listener: RoomListStateObserver { [weak self] state in
guard let self else { return }
MXLog.info("\(name): Received state update: \(state)")