mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
Increase the time before we show loading indicators when processing user session and flow coordinators routes
This commit is contained in:
parent
b01070c6b6
commit
bc8518ec3e
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user