From 7ee471400e20fd18a4b3713d35bfd52bf45168a2 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Thu, 6 Feb 2025 15:50:37 +0100 Subject: [PATCH] fixed an issue where the loading was not stopped --- ElementX/Sources/FlowCoordinators/RoomFlowCoordinator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ElementX/Sources/FlowCoordinators/RoomFlowCoordinator.swift b/ElementX/Sources/FlowCoordinators/RoomFlowCoordinator.swift index 9b91e9f256..8ca41a20a8 100644 --- a/ElementX/Sources/FlowCoordinators/RoomFlowCoordinator.swift +++ b/ElementX/Sources/FlowCoordinators/RoomFlowCoordinator.swift @@ -230,11 +230,11 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol { guard roomID == self.roomID else { fatalError("Navigation route doesn't belong to this room flow.") } showLoadingIndicator(delay: .milliseconds(250)) + defer { hideLoadingIndicator() } guard let room = await userSession.clientProxy.roomForIdentifier(roomID) else { stateMachine.tryEvent(.presentJoinRoomScreen(via: via), userInfo: EventUserInfo(animated: animated)) return } - hideLoadingIndicator() switch room { case .joined(let roomProxy):