From 8d014f057ee0a7878219ac53327a2e6651a0bf0d Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 5 Dec 2017 13:44:25 -0500 Subject: [PATCH] Respond to CR. --- Signal/src/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index ff3149e79..2af02141d 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -198,7 +198,7 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; */ - (void)verifyDBKeysAvailableBeforeBackgroundLaunch { - if (CurrentAppContext().isMainApp && CurrentAppContext().mainApplicationState != UIApplicationStateBackground) { + if ([UIApplication sharedApplication].applicationState != UIApplicationStateBackground) { return; }