From 066006c4be3650092aa2efdf9229d1cfb422b671 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Thu, 11 May 2023 14:04:17 +0300 Subject: [PATCH] Correct the state machine current state after failing to retrieve a particular room --- .../Services/UserSession/UserSessionFlowCoordinator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ElementX/Sources/Services/UserSession/UserSessionFlowCoordinator.swift b/ElementX/Sources/Services/UserSession/UserSessionFlowCoordinator.swift index 091132da3..c584ccbcb 100644 --- a/ElementX/Sources/Services/UserSession/UserSessionFlowCoordinator.swift +++ b/ElementX/Sources/Services/UserSession/UserSessionFlowCoordinator.swift @@ -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