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 {
|
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.") }
|
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() }
|
defer { hideLoadingIndicator() }
|
||||||
|
|
||||||
guard let room = await userSession.clientProxy.roomForIdentifier(roomID) else {
|
guard let room = await userSession.clientProxy.roomForIdentifier(roomID) else {
|
||||||
stateMachine.tryEvent(.presentJoinRoomScreen(via: via), userInfo: EventUserInfo(animated: animated))
|
stateMachine.tryEvent(.presentJoinRoomScreen(via: via), userInfo: EventUserInfo(animated: animated))
|
||||||
return
|
return
|
||||||
|
@ -146,10 +146,8 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
|
|||||||
// MARK: - Private
|
// MARK: - Private
|
||||||
|
|
||||||
func asyncHandleAppRoute(_ appRoute: AppRoute, animated: Bool) async {
|
func asyncHandleAppRoute(_ appRoute: AppRoute, animated: Bool) async {
|
||||||
showLoadingIndicator(delay: .seconds(0.25))
|
showLoadingIndicator(delay: .seconds(0.5))
|
||||||
defer {
|
defer { hideLoadingIndicator() }
|
||||||
hideLoadingIndicator()
|
|
||||||
}
|
|
||||||
|
|
||||||
await clearPresentedSheets(animated: animated)
|
await clearPresentedSheets(animated: animated)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user