Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 97169f521a
commit ab3aa9d0ce

@ -436,23 +436,6 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
if (getenv("runningTests_dontStartApp")) { if (getenv("runningTests_dontStartApp")) {
return; return;
} }
[[TSAccountManager sharedInstance] ifRegistered:YES
runAsync:^{
// We're double checking that the app is active, to be sure since we
// can't verify in production env due to code
// signing.
[TSSocketManager requestSocketOpen];
dispatch_async(dispatch_get_main_queue(), ^{
[[Environment getCurrent]
.contactsManager fetchSystemContactsIfAlreadyAuthorized];
});
// This will fetch new messages, if we're using domain
// fronting.
[[PushManager sharedManager] applicationDidBecomeActive];
}];
[self removeScreenProtection]; [self removeScreenProtection];
@ -499,6 +482,7 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
runAsync:^{ runAsync:^{
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
DDLogInfo(@"%@ running post launch block for unregistered user.", self.tag); DDLogInfo(@"%@ running post launch block for unregistered user.", self.tag);
[TSSocketManager requestSocketOpen]; [TSSocketManager requestSocketOpen];
UITapGestureRecognizer *gesture = UITapGestureRecognizer *gesture =
@ -511,6 +495,18 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
}]; }];
}); });
[[TSAccountManager sharedInstance]
ifRegistered:YES
runAsync:^{
dispatch_async(dispatch_get_main_queue(), ^{
[[Environment getCurrent].contactsManager fetchSystemContactsIfAlreadyAuthorized];
});
// This will fetch new messages, if we're using domain
// fronting.
[[PushManager sharedManager] applicationDidBecomeActive];
}];
DDLogInfo(@"%@ applicationDidBecomeActive completed.", self.tag); DDLogInfo(@"%@ applicationDidBecomeActive completed.", self.tag);
} }

Loading…
Cancel
Save