From fd86495e2629fb709806c424125492e11948fef5 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 6 Apr 2017 11:57:08 -0400 Subject: [PATCH] Respond to CR. // FREEBIE --- .../MessageComposeTableViewController.m | 26 +++---------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/Signal/src/ViewControllers/MessageComposeTableViewController.m b/Signal/src/ViewControllers/MessageComposeTableViewController.m index 67c3a3663..dc377d08f 100644 --- a/Signal/src/ViewControllers/MessageComposeTableViewController.m +++ b/Signal/src/ViewControllers/MessageComposeTableViewController.m @@ -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]; + }]; } }