mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 20:39:24 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user