Fix crash

This commit is contained in:
nielsandriesse 2020-08-03 13:31:01 +10:00
parent 6ea788289d
commit 990e306e59
1 changed files with 0 additions and 7 deletions

View File

@ -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];