Fix which roomID is used when dismissing windows and unit test mocks.

This commit is contained in:
Stefan Ceriu
2026-03-31 17:20:14 +03:00
committed by Stefan Ceriu
parent 4a4cdce090
commit ec9cf76f2d
2 changed files with 6 additions and 2 deletions
@@ -900,7 +900,7 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
// iPhone the compact module diffs call the dismissal callback and we present a blank space flow 🙈
if spaceRoomListProxy == nil {
navigationStackCoordinator.setRootCoordinator(nil, animated: false)
flowParameters.windowManager.closeAuxiliaryWindow(forType: .room(roomID: roomProxy.id))
flowParameters.windowManager.closeAuxiliaryWindow(forType: .room(roomID: roomID))
}
}
+5 -1
View File
@@ -14,9 +14,13 @@ extension AppMediatorMock {
mock.underlyingAppState = .active
mock.requestAuthorizationIfNeededUnderlyingReturnValue = true
mock.underlyingWindowManager = WindowManagerMock()
mock.underlyingNetworkMonitor = NetworkMonitorMock.default
let windowManagerMock = WindowManagerMock()
windowManagerMock.closeAllAuxiliaryWindowsClosure = { }
windowManagerMock.closeAuxiliaryWindowForTypeClosure = { _ in }
mock.underlyingWindowManager = windowManagerMock
return mock
}
}