Skip to content

Commit

Permalink
fixed an issue where the loading was not stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Feb 6, 2025
1 parent eaf98c9 commit 7ee4714
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7ee4714

Please sign in to comment.