Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 8823b2884a
commit fd86495e26

@ -693,28 +693,10 @@ NSString *const MessageComposeTableViewControllerCellContact = @"ContactTableVie
Contact *contact = [self contactForIndexPath:indexPath];
NSString *contactIdentifier = [[contact textSecureIdentifiers] firstObject];
__weak MessageComposeTableViewController *weakSelf = self;
void (^newContactConversationBlock)() = ^{
[weakSelf dismissViewControllerAnimated:YES
completion:^() {
[Environment messageIdentifier:contactIdentifier withCompose:YES];
}];
};
if ([self isContactBlocked:contact]) {
[BlockListUIUtils showUnblockPhoneNumberActionSheet:contactIdentifier
fromViewController:self
blockingManager:_blockingManager
contactsManager:_contactsManager
completionBlock:^(BOOL isBlocked) {
if (!isBlocked) {
newContactConversationBlock();
}
}];
} else {
newContactConversationBlock();
}
[self dismissViewControllerAnimated:YES
completion:^() {
[Environment messageIdentifier:contactIdentifier withCompose:YES];
}];
}
}

Loading…
Cancel
Save