mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Move room subscriptions to a separate call, fix side effects when requesting other room data (leaving, inviter etc)
This commit is contained in:
committed by
Stefan Ceriu
parent
c64fb44c96
commit
54164b8437
@@ -282,6 +282,8 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
|
||||
roomProxy = proxy
|
||||
}
|
||||
|
||||
await roomProxy.subscribeForUpdates()
|
||||
|
||||
actionsSubject.send(.presentedRoom(roomID))
|
||||
|
||||
self.roomProxy = roomProxy
|
||||
@@ -369,6 +371,7 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
|
||||
private func asyncPresentRoomDetails(roomID: String, isRoot: Bool, animated: Bool) async {
|
||||
if isRoot {
|
||||
roomProxy = await userSession.clientProxy.roomForIdentifier(roomID)
|
||||
await roomProxy?.subscribeForUpdates()
|
||||
} else {
|
||||
await asyncPresentRoom(roomID, animated: animated)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user