mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix which roomID is used when dismissing windows and unit test mocks.
This commit is contained in:
committed by
Stefan Ceriu
parent
4a4cdce090
commit
ec9cf76f2d
@@ -900,7 +900,7 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
|
|||||||
// iPhone the compact module diffs call the dismissal callback and we present a blank space flow 🙈
|
// iPhone the compact module diffs call the dismissal callback and we present a blank space flow 🙈
|
||||||
if spaceRoomListProxy == nil {
|
if spaceRoomListProxy == nil {
|
||||||
navigationStackCoordinator.setRootCoordinator(nil, animated: false)
|
navigationStackCoordinator.setRootCoordinator(nil, animated: false)
|
||||||
flowParameters.windowManager.closeAuxiliaryWindow(forType: .room(roomID: roomProxy.id))
|
flowParameters.windowManager.closeAuxiliaryWindow(forType: .room(roomID: roomID))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,9 +14,13 @@ extension AppMediatorMock {
|
|||||||
|
|
||||||
mock.underlyingAppState = .active
|
mock.underlyingAppState = .active
|
||||||
mock.requestAuthorizationIfNeededUnderlyingReturnValue = true
|
mock.requestAuthorizationIfNeededUnderlyingReturnValue = true
|
||||||
mock.underlyingWindowManager = WindowManagerMock()
|
|
||||||
mock.underlyingNetworkMonitor = NetworkMonitorMock.default
|
mock.underlyingNetworkMonitor = NetworkMonitorMock.default
|
||||||
|
|
||||||
|
let windowManagerMock = WindowManagerMock()
|
||||||
|
windowManagerMock.closeAllAuxiliaryWindowsClosure = { }
|
||||||
|
windowManagerMock.closeAuxiliaryWindowForTypeClosure = { _ in }
|
||||||
|
mock.underlyingWindowManager = windowManagerMock
|
||||||
|
|
||||||
return mock
|
return mock
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user