diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index e8a3fe7b1a..5fa6195993 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -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]; diff --git a/Signal/src/AppDelegate.swift b/Signal/src/AppDelegate.swift index f9e5e0a832..b8d2565d36 100644 --- a/Signal/src/AppDelegate.swift +++ b/Signal/src/AppDelegate.swift @@ -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 {