From c9cedeb8d661e4d484aafc40ceed70b7aa399982 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 16 Sep 2021 15:47:49 -0300 Subject: [PATCH] Don't block on intent donation. --- .../Notifications/UserNotificationsAdaptee.swift | 8 -------- 1 file changed, 8 deletions(-) diff --git a/SignalMessaging/Notifications/UserNotificationsAdaptee.swift b/SignalMessaging/Notifications/UserNotificationsAdaptee.swift index 9a79c7d6c2..09c9d15f98 100644 --- a/SignalMessaging/Notifications/UserNotificationsAdaptee.swift +++ b/SignalMessaging/Notifications/UserNotificationsAdaptee.swift @@ -243,23 +243,15 @@ class UserNotificationPresenterAdaptee: NSObject, NotificationPresenterAdaptee { Logger.info("Will donate interaction") } - let group = DispatchGroup() - group.enter() interaction.donate(completion: { error in if DebugFlags.internalLogging { Logger.info("Did donate interaction") } - group.leave() - if let error = error { owsFailDebug("Failed to donate incoming message intent \(error)") return } }) - if case .timedOut = group.wait(timeout: .now() + 1.0) { - Logger.warn("Timed out donating intent") - } - if DebugFlags.internalLogging { Logger.info("Will update notification content with intent") }