(cherry picked from commit 8d4b602ab8)
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
This commit is contained in:
parent
a0eb5192ce
commit
ebe57e9950
1 changed files with 6 additions and 2 deletions
|
|
@ -102,7 +102,9 @@ NSString *const ReplyActionID = @"REPLY_ACTION";
|
|||
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:[notifications count]];
|
||||
}];
|
||||
|
||||
completionHandler();
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
completionHandler();
|
||||
});
|
||||
}
|
||||
|
||||
- (void) handleReplyFailure:(NSString *)channelId completionHandler:(void (^)(void))completionHandler {
|
||||
|
|
@ -124,7 +126,9 @@ NSString *const ReplyActionID = @"REPLY_ACTION";
|
|||
};
|
||||
[notificationCenter sendLocalNotification:notification withId:id];
|
||||
|
||||
completionHandler();
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
completionHandler();
|
||||
});
|
||||
}
|
||||
|
||||
#pragma mark - Method Swizzling
|
||||
|
|
|
|||
Loading…
Reference in a new issue