Stop delaying subscriptions until after startup (#3294)

- reverts b43797f4bf
- relies on https://github.com/matrix-org/matrix-rust-sdk/pull/3981
This commit is contained in:
Stefan Ceriu
2024-09-18 13:16:46 +03:00
committed by GitHub
parent 63a0a99dbd
commit 9b6470d1f3
2 changed files with 1 additions and 19 deletions
@@ -83,8 +83,6 @@ class ClientProxy: ClientProxyProtocol {
.asCurrentValuePublisher()
}
private let roomListServiceStateSubject = CurrentValueSubject<RoomListServiceState, Never>(.initial)
private var cancellables = Set<AnyCancellable>()
/// Will be `true` whilst the app cleans up and forces a logout. Prevents the sync service from restarting
@@ -735,7 +733,6 @@ class ClientProxy: ClientProxyProtocol {
shouldPrefixSenderName: true)
roomSummaryProvider = RoomSummaryProvider(roomListService: roomListService,
roomListServiceStatePublisher: roomListServiceStateSubject.asCurrentValuePublisher(),
eventStringBuilder: eventStringBuilder,
name: "AllRooms",
shouldUpdateVisibleRange: true,
@@ -744,7 +741,6 @@ class ClientProxy: ClientProxyProtocol {
try await roomSummaryProvider?.setRoomList(roomListService.allRooms())
alternateRoomSummaryProvider = RoomSummaryProvider(roomListService: roomListService,
roomListServiceStatePublisher: roomListServiceStateSubject.asCurrentValuePublisher(),
eventStringBuilder: eventStringBuilder,
name: "MessageForwarding",
notificationSettings: notificationSettings,
@@ -784,8 +780,6 @@ class ClientProxy: ClientProxyProtocol {
MXLog.info("Received room list update: \(state)")
roomListServiceStateSubject.send(state)
guard state != .error,
state != .terminated else {
// The sync service is responsible of handling error and termination