Merge branch 'mkirk/codecleanup-contact-sync'

pull/1/head
Michael Kirk 7 years ago
commit 69aeb041ba

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

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

Loading…
Cancel
Save