Fix Swift 6.4 warnings (#6240)

This commit is contained in:
Mauro
2026-10-01 10:55:19 +02:00
committed by GitHub
parent 99c0fa5729
commit 831234865b
28 changed files with 71 additions and 69 deletions
@@ -30,14 +30,14 @@ extension SessionVerificationControllerProxyMock {
Task {
guard let mock else { return }
try await Task.sleep(for: requestDelay)
try? await Task.sleep(for: requestDelay)
mock.actions.send(.acceptedVerificationRequest)
if otherDeviceStartsSasVerification {
try await Task.sleep(for: requestDelay)
try? await Task.sleep(for: requestDelay)
mock.actions.send(.startedSasVerification)
try await Task.sleep(for: requestDelay)
try? await Task.sleep(for: requestDelay)
mock.actions.send(.receivedVerificationData(emojis))
}
}
@@ -49,11 +49,11 @@ extension SessionVerificationControllerProxyMock {
Task {
guard let mock else { return }
try await Task.sleep(for: requestDelay)
try? await Task.sleep(for: requestDelay)
mock.actions.send(.startedSasVerification)
Task {
try await Task.sleep(for: requestDelay)
try? await Task.sleep(for: requestDelay)
mock.actions.send(.receivedVerificationData(emojis))
}
}
@@ -65,7 +65,7 @@ extension SessionVerificationControllerProxyMock {
Task {
guard let mock else { return }
try await Task.sleep(for: requestDelay)
try? await Task.sleep(for: requestDelay)
mock.actions.send(.finished)
}
@@ -76,7 +76,7 @@ extension SessionVerificationControllerProxyMock {
Task {
guard let mock else { return }
try await Task.sleep(for: requestDelay)
try? await Task.sleep(for: requestDelay)
mock.actions.send(.cancelled)
}
@@ -87,7 +87,7 @@ extension SessionVerificationControllerProxyMock {
Task {
guard let mock else { return }
try await Task.sleep(for: requestDelay)
try? await Task.sleep(for: requestDelay)
mock.actions.send(.cancelled)
}