mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Fix Swift 6.4 warnings (#6240)
This commit is contained in:
@@ -308,9 +308,9 @@ final class RoomMembersFlowCoordinator: FlowCoordinatorProtocol {
|
||||
|
||||
// Replace the RoomMemberDetailsScreen without any animation.
|
||||
// If this pop and push happens before the previous navigation is completed it might break screen presentation logic
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(500)) {
|
||||
self.navigationStackCoordinator.pop(animated: false)
|
||||
self.navigationStackCoordinator.push(coordinator, animated: false) { [weak self] in
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .milliseconds(500)) { [self] in
|
||||
navigationStackCoordinator.pop(animated: false)
|
||||
navigationStackCoordinator.push(coordinator, animated: false) { [weak self] in
|
||||
self?.stateMachine.tryEvent(.dismissedUserProfile)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -371,7 +371,7 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
|
||||
self.navigationTabCoordinator.setSheetCoordinator(nil)
|
||||
|
||||
// The sheet needs to be dismissed before the alert can be shown
|
||||
try await Task.sleep(for: .milliseconds(100))
|
||||
try? await Task.sleep(for: .milliseconds(100))
|
||||
await self.runLogoutFlow()
|
||||
}
|
||||
case .forceLogout:
|
||||
|
||||
Reference in New Issue
Block a user