Merge branch 'mkirk/codecleanup-contact-sync'

This commit is contained in:
Michael Kirk 2018-05-09 21:56:38 -04:00
commit 69aeb041ba
2 changed files with 2 additions and 1 deletions

View File

@ -167,7 +167,7 @@ NSString *const kOWSPrimaryStorageOWSContactsSyncingLastMessageKey
return;
}
if ([TSAccountManager sharedInstance]) {
if ([TSAccountManager sharedInstance].isRegistered) {
[self sendSyncContactsMessageIfNecessary];
}
}

View File

@ -34,6 +34,7 @@ extern NSString *const kNSNotificationName_LocalNumberDidChange;
* @return registered or not
*/
+ (BOOL)isRegistered;
- (BOOL)isRegistered;
/**
* Returns current phone number for this device, which may not yet have been registered.