Correct the state machine current state after failing to retrieve a particular room

This commit is contained in:
Stefan Ceriu
2023-05-11 14:04:17 +03:00
committed by Stefan Ceriu
parent 02e7ab44c1
commit 066006c4be
@@ -186,6 +186,7 @@ class UserSessionFlowCoordinator: CoordinatorProtocol {
Task { @MainActor in
guard let roomProxy = await userSession.clientProxy.roomForIdentifier(roomIdentifier) else {
MXLog.error("Invalid room identifier: \(roomIdentifier)")
stateMachine.processEvent(.deselectRoom)
return
}
let userId = userSession.clientProxy.userID