From e7affecc17db32b1c8392ab1cca5e99def7cf327 Mon Sep 17 00:00:00 2001 From: Ronny Date: Thu, 21 Jul 2016 17:50:41 +0200 Subject: [PATCH] FIX: Leaving group should dismiss keyboard #1274 (#1278) If we hide the input toolbar, we should hide the keyboard too //FREEBIE --- Signal/src/view controllers/MessagesViewController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Signal/src/view controllers/MessagesViewController.m b/Signal/src/view controllers/MessagesViewController.m index 0ee03a297..1ad08ac6a 100644 --- a/Signal/src/view controllers/MessagesViewController.m +++ b/Signal/src/view controllers/MessagesViewController.m @@ -151,6 +151,7 @@ typedef enum : NSUInteger { - (void)hideInputIfNeeded { if (_peek) { [self inputToolbar].hidden = YES; + [self.inputToolbar endEditing:TRUE]; return; } @@ -158,6 +159,7 @@ typedef enum : NSUInteger { ![((TSGroupThread *)_thread).groupModel.groupMemberIds containsObject:[TSAccountManager localNumber]]) { [self inputToolbar].hidden = YES; // user has requested they leave the group. further sends disallowed + [self.inputToolbar endEditing:TRUE]; self.navigationItem.rightBarButtonItem = nil; // further group action disallowed } else { [self inputToolbar].hidden = NO;