Fix nil argument when processing remote notification
This commit is contained in:
parent
e12007ea8f
commit
08e5c272b7
@ -302,7 +302,7 @@ static void uncaughtExceptionHandler(NSException *exception)
|
||||
NSDictionary *remoteNotification = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];
|
||||
if (remoteNotification) {
|
||||
OWSLogInfo(@"Application was launched by tapping a push notification.");
|
||||
[self processRemoteNotification:remoteNotification completion:nil];
|
||||
[self processRemoteNotification:remoteNotification];
|
||||
}
|
||||
|
||||
[OWSScreenLockUI.shared setupWithRootWindow:self.window];
|
||||
|
||||
@ -233,7 +233,12 @@ extension AppDelegate {
|
||||
}
|
||||
|
||||
@objc
|
||||
func processRemoteNotification(_ remoteNotification: NSDictionary, completion: @escaping () -> Void = {}) {
|
||||
func processRemoteNotification(_ remoteNotification: NSDictionary) {
|
||||
processRemoteNotification(remoteNotification) {}
|
||||
}
|
||||
|
||||
@objc
|
||||
func processRemoteNotification(_ remoteNotification: NSDictionary, completion: @escaping () -> Void) {
|
||||
AssertIsOnMainThread()
|
||||
|
||||
guard !didAppLaunchFail else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user