mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-04 23:17:43 +02:00
Device Verification: Make incoming requests dialogs dequeueing work without a random sleep
This commit is contained in:
@@ -70,12 +70,16 @@ final class DeviceVerificationCoordinatorBridgePresenter: NSObject {
|
||||
self.coordinator = deviceVerificationCoordinator
|
||||
}
|
||||
|
||||
func dismiss(animated: Bool) {
|
||||
func dismiss(animated: Bool, completion: (() -> Void)?) {
|
||||
guard let coordinator = self.coordinator else {
|
||||
return
|
||||
}
|
||||
coordinator.toPresentable().dismiss(animated: animated) {
|
||||
self.coordinator = nil
|
||||
|
||||
if let completion = completion {
|
||||
completion()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user