Page MenuHomePhabricator

D4576.id14655.diff
No OneTemporary

D4576.id14655.diff

diff --git a/native/ios/Comm/AppDelegate.mm b/native/ios/Comm/AppDelegate.mm
--- a/native/ios/Comm/AppDelegate.mm
+++ b/native/ios/Comm/AppDelegate.mm
@@ -168,7 +168,6 @@
[self attemptDatabaseInitialization];
comm::ThreadOperations::updateSQLiteUnreadStatus(threadID, false);
}
- dispatch_semaphore_t rescind_complete_sem = dispatch_semaphore_create(0);
[[UNUserNotificationCenter currentNotificationCenter]
getDeliveredNotificationsWithCompletionHandler:^(
NSArray<UNNotification *> *notifications) {
@@ -181,10 +180,10 @@
removeDeliveredNotificationsWithIdentifiers:identifiers];
}
}
- dispatch_semaphore_signal(rescind_complete_sem);
+ dispatch_async(dispatch_get_main_queue(), ^{
+ completionHandler(UIBackgroundFetchResultNewData);
+ });
}];
- dispatch_semaphore_wait(rescind_complete_sem, DISPATCH_TIME_FOREVER);
- completionHandler(UIBackgroundFetchResultNewData);
return YES;
}
return NO;

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 4:24 AM (19 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2859784
Default Alt Text
D4576.id14655.diff (1 KB)

Event Timeline