mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Fix Swift 6.4 warnings (#6240)
This commit is contained in:
@@ -78,7 +78,7 @@ class PollFormScreenViewModel: PollFormScreenViewModelType, PollFormScreenViewMo
|
||||
case .deleteOption(let index):
|
||||
// fixes a crash that caused an index out of range when an option with the keyboard focus was deleted
|
||||
Task {
|
||||
try await Task.sleep(for: .milliseconds(100))
|
||||
try? await Task.sleep(for: .milliseconds(100))
|
||||
guard state.bindings.options.indices.contains(index) else {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user