From 990e306e5968908dcc914fd29c7eeb957c14d40d Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Mon, 3 Aug 2020 13:31:01 +1000 Subject: [PATCH] Fix crash --- Signal/src/AppDelegate.m | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index 1e7718390..cc89f532d 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -260,13 +260,6 @@ static NSTimeInterval launchStartedAt; UNUserNotificationCenter.currentNotificationCenter.delegate = self; } - // Accept push notification when app is not open - NSDictionary *remoteNotif = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey]; - if (remoteNotif) { - OWSLogInfo(@"Application was launched by tapping a push notification."); - [self application:application didReceiveRemoteNotification:remoteNotif]; - } - [OWSScreenLockUI.sharedManager setupWithRootWindow:self.window]; [[OWSWindowManager sharedManager] setupWithRootWindow:self.window screenBlockingWindow:OWSScreenLockUI.sharedManager.screenBlockingWindow];