Increase the time before we show loading indicators when processing user session and flow coordinators routes
This commit is contained in:
committed by
Stefan Ceriu
parent
fa73f1992a
commit
aa73bee10b
@@ -230,8 +230,9 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
|
||||
private func handleRoomRoute(roomID: String, via: [String], presentationAction: PresentationAction? = nil, animated: Bool) async {
|
||||
guard roomID == self.roomID else { fatalError("Navigation route doesn't belong to this room flow.") }
|
||||
|
||||
showLoadingIndicator(delay: .milliseconds(250))
|
||||
showLoadingIndicator(delay: .seconds(0.5))
|
||||
defer { hideLoadingIndicator() }
|
||||
|
||||
guard let room = await userSession.clientProxy.roomForIdentifier(roomID) else {
|
||||
stateMachine.tryEvent(.presentJoinRoomScreen(via: via), userInfo: EventUserInfo(animated: animated))
|
||||
return
|
||||
|
||||
@@ -146,10 +146,8 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
|
||||
// MARK: - Private
|
||||
|
||||
func asyncHandleAppRoute(_ appRoute: AppRoute, animated: Bool) async {
|
||||
showLoadingIndicator(delay: .seconds(0.25))
|
||||
defer {
|
||||
hideLoadingIndicator()
|
||||
}
|
||||
showLoadingIndicator(delay: .seconds(0.5))
|
||||
defer { hideLoadingIndicator() }
|
||||
|
||||
await clearPresentedSheets(animated: animated)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user