Fix glitch in batch processing of incoming messages.

pull/1/head
Matthew Chen 7 years ago
parent 6f28c75257
commit 8930110efd

@ -137,6 +137,9 @@ NS_ASSUME_NONNULL_BEGIN
- (void)yapDatabaseModified:(NSNotification *)notification
{
if (AppReadiness.isAppReady) {
[OWSMessageUtils.sharedManager updateApplicationBadgeCount];
} else {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[AppReadiness runNowOrWhenAppIsReady:^{
@ -144,6 +147,7 @@ NS_ASSUME_NONNULL_BEGIN
}];
});
}
}
#pragma mark - Blocking

Loading…
Cancel
Save