Make room proxy unsubscriptions explicit. Fixes problems in which creating and deallocating room proxies would unexpectedly unsubscribe other proxies.

This commit is contained in:
Stefan Ceriu
2024-01-17 11:47:17 +02:00
parent 922eca0ae5
commit 9bb9c8b31e
4 changed files with 24 additions and 5 deletions
@@ -58,7 +58,12 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
actionsSubject.eraseToAnyPublisher()
}
private var roomProxy: RoomProxyProtocol?
private var roomProxy: RoomProxyProtocol? {
didSet {
oldValue?.unsubscribeFromUpdates()
}
}
private var timelineController: RoomTimelineControllerProtocol?
init(userSession: UserSessionProtocol,