dont rotate profile keys for unregistered user

pull/1/head
Michael Kirk 7 years ago
parent b44a5e9d2a
commit c425aa9493

@ -576,6 +576,11 @@ typedef void (^ProfileManagerFailureBlock)(NSError *error);
failure:(ProfileManagerFailureBlock)failure {
OWSAssertDebug(AppReadiness.isAppReady);
if (!self.tsAccountManager.isRegistered) {
success();
return;
}
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSMutableSet<NSString *> *whitelistedRecipientIds = [NSMutableSet new];
NSMutableSet<NSData *> *whitelistedGroupIds = [NSMutableSet new];

Loading…
Cancel
Save