From f88c2b17088284b3ca15563bd7acf11cd105ea48 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 2 Aug 2021 15:24:12 +1000 Subject: [PATCH] fix crash --- Session/Notifications/AppNotifications.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Session/Notifications/AppNotifications.swift b/Session/Notifications/AppNotifications.swift index 32aee5555..ac5f8ebf1 100644 --- a/Session/Notifications/AppNotifications.swift +++ b/Session/Notifications/AppNotifications.swift @@ -269,7 +269,9 @@ public class NotificationPresenter: NSObject, NotificationsProtocol { @objc public func cancelNotification(_ identifier: String) { - self.adaptee.cancelNotification(identifier: identifier) + DispatchQueue.main.async { + self.adaptee.cancelNotification(identifier: identifier) + } } @objc