From 8189e593eff004593ee853b7d8e7f07e3b8829ec Mon Sep 17 00:00:00 2001 From: Frederic Jacobs Date: Sat, 31 Oct 2015 04:54:26 +0100 Subject: [PATCH] Fixes glitching of inbox label when coming back from background. The method was not called on the main thread, resulting in rendering issues. --- Signal/src/AppDelegate.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index f95cefcd7..a8fe9c12c 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -174,7 +174,9 @@ static NSString * const kURLHostVerifyPrefix = @"verify"; dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self protectScreen]; if ([TSAccountManager isRegistered]) { - [[[Environment getCurrent] signalsViewController] updateInboxCountLabel]; + dispatch_sync(dispatch_get_main_queue(), ^{ + [[[Environment getCurrent] signalsViewController] updateInboxCountLabel]; + }); [TSSocketManager resignActivity]; }