This commit is contained in:
Frederic Jacobs 2015-11-03 00:26:48 +01:00
parent b70be4d559
commit 861e3d6266

View file

@ -172,9 +172,9 @@ static NSString * const kURLHostVerifyPrefix = @"verify";
}];
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];