fix crash

This commit is contained in:
Ryan Zhao 2021-08-02 15:24:12 +10:00
parent c68350f3d8
commit f88c2b1708
1 changed files with 3 additions and 1 deletions

View File

@ -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