Execute completion handler on main queue (#4947)
This commit is contained in:
parent
e57bcfdaba
commit
8d4b602ab8
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