From 34ba5efe11535e6ed525a50373eb3de96afb93d4 Mon Sep 17 00:00:00 2001 From: Christine Corbett Date: Tue, 6 Jan 2015 22:24:54 +0000 Subject: [PATCH] Closes #291 Reviewed-by: @FredericJacobs //FREEBIE --- Signal/src/view controllers/MessagesViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Signal/src/view controllers/MessagesViewController.m b/Signal/src/view controllers/MessagesViewController.m index 928b91d7f..789757df4 100644 --- a/Signal/src/view controllers/MessagesViewController.m +++ b/Signal/src/view controllers/MessagesViewController.m @@ -651,6 +651,7 @@ typedef enum : NSUInteger { #pragma mark Bubble User Actions - (void)handleUnsentMessageTap:(TSOutgoingMessage*)message{ + [self.inputToolbar.contentView.textView resignFirstResponder]; [DJWActionSheet showInView:self.tabBarController.view withTitle:nil cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete" otherButtonTitles:@[@"Send again"] tapBlock:^(DJWActionSheet *actionSheet, NSInteger tappedButtonIndex) { if (tappedButtonIndex == actionSheet.cancelButtonIndex) { NSLog(@"User Cancelled"); @@ -679,7 +680,7 @@ typedef enum : NSUInteger { NSString *messageString = [NSString stringWithFormat:@"Do you want to accept %@'s new identity key: %@", _thread.name, newKeyFingerprint]; NSArray *actions = @[@"Accept new identity key", @"Copy new identity key to pasteboard"]; - [self.inputToolbar.contentView resignFirstResponder]; + [self.inputToolbar.contentView.textView resignFirstResponder]; [DJWActionSheet showInView:self.tabBarController.view withTitle:messageString cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Delete" otherButtonTitles:actions tapBlock:^(DJWActionSheet *actionSheet, NSInteger tappedButtonIndex) { if (tappedButtonIndex == actionSheet.cancelButtonIndex) {