|
|
@ -291,15 +291,8 @@ static NSString *const kURLHostVerifyPrefix = @"verify";
|
|
|
|
|
|
|
|
|
|
|
|
[self removeScreenProtection];
|
|
|
|
[self removeScreenProtection];
|
|
|
|
|
|
|
|
|
|
|
|
static BOOL hasCheckedPrekeys = NO;
|
|
|
|
// Always check prekeys after app launches, and sometimes check on app activation.
|
|
|
|
if (!hasCheckedPrekeys) {
|
|
|
|
[TSPreKeyManager checkPreKeysIfNecessary];
|
|
|
|
// Always check prekeys after app launches...
|
|
|
|
|
|
|
|
[TSPreKeyManager refreshPreKeys];
|
|
|
|
|
|
|
|
hasCheckedPrekeys = YES;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// ...and sometimes check on app activation.
|
|
|
|
|
|
|
|
[TSPreKeyManager checkPreKeysIfNecessary];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (void)applicationWillResignActive:(UIApplication *)application {
|
|
|
|
- (void)applicationWillResignActive:(UIApplication *)application {
|
|
|
|