code cleanup pre CR

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 4adaaa605f
commit 14b6294d6f

@ -604,10 +604,12 @@ NS_ASSUME_NONNULL_BEGIN
[self showUpdateGroupView:UpdateGroupMode_EditGroupName]; [self showUpdateGroupView:UpdateGroupMode_EditGroupName];
} }
} else { } else {
if (self.contactsManager.supportsContactEditing) {
[self presentContactViewController]; [self presentContactViewController];
} }
} }
} }
}
- (UIImageView *)viewForIconWithName:(NSString *)iconName - (UIImageView *)viewForIconWithName:(NSString *)iconName
{ {
@ -678,7 +680,8 @@ NS_ASSUME_NONNULL_BEGIN
- (void)presentContactViewController - (void)presentContactViewController
{ {
if (!self.contactsManager.supportsContactEditing) { if (!self.contactsManager.supportsContactEditing) {
DDLogWarn(@"%@ Contact editing not supported", self.tag); DDLogError(@"%@ Contact editing not supported", self.tag);
OWSAssert(NO);
return; return;
} }
if (![self.thread isKindOfClass:[TSContactThread class]]) { if (![self.thread isKindOfClass:[TSContactThread class]]) {

@ -175,7 +175,6 @@ class AddressBookContactStoreAdaptee: ContactStoreAdaptee {
andImage: addressBookRecord.image, andImage: addressBookRecord.image,
andContactID: addressBookRecord.recordId) andContactID: addressBookRecord.recordId)
} }
} }
/** /**

Loading…
Cancel
Save