mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix Swift 6.4 warnings (#6240)
This commit is contained in:
@@ -723,7 +723,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
fatalError("User session not setup")
|
||||
}
|
||||
|
||||
Task {
|
||||
Task { [self] in
|
||||
let credentials = SoftLogoutScreenCredentials(userID: userSession.clientProxy.userID,
|
||||
homeserverName: userSession.clientProxy.homeserver,
|
||||
userDisplayName: userSession.clientProxy.userProfilePublisher.value.displayName ?? "",
|
||||
@@ -744,7 +744,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
appHooks: appHooks,
|
||||
userIndicatorController: userIndicatorController)
|
||||
let coordinator = SoftLogoutScreenCoordinator(parameters: parameters)
|
||||
self.softLogoutCoordinator = coordinator
|
||||
softLogoutCoordinator = coordinator
|
||||
coordinator.actions
|
||||
.sink { [weak self] action in
|
||||
guard let self else { return }
|
||||
|
||||
@@ -247,7 +247,7 @@ private extension UIWindowScene {
|
||||
self.sizeRestrictions?.maximumSize = size
|
||||
|
||||
Task {
|
||||
try await Task.sleep(for: .milliseconds(100))
|
||||
try? await Task.sleep(for: .milliseconds(100))
|
||||
self.sizeRestrictions?.minimumSize = sizeRestrictions.minimumSize
|
||||
self.sizeRestrictions?.maximumSize = sizeRestrictions.maximumSize
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user