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