From 861e3d6266cae89e0e8f35e126e0590ca987f017 Mon Sep 17 00:00:00 2001 From: Frederic Jacobs Date: Tue, 3 Nov 2015 00:26:48 +0100 Subject: [PATCH] Fixes #930 --- 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 2474f40c7b0..cb57378a566 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -172,9 +172,9 @@ - (void)applicationWillResignActive:(UIApplication *)application { }]; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - [self protectScreen]; if ([TSAccountManager isRegistered]) { dispatch_sync(dispatch_get_main_queue(), ^{ + [self protectScreen]; [[[Environment getCurrent] signalsViewController] updateInboxCountLabel]; }); [TSSocketManager resignActivity];