FIX: Leaving group should dismiss keyboard #1274 (#1278)

If we hide the input toolbar, we should hide the keyboard too

//FREEBIE
This commit is contained in:
Ronny 2016-07-21 17:50:41 +02:00 committed by Michael Kirk
parent 0455f03615
commit e7affecc17
1 changed files with 2 additions and 0 deletions

View File

@ -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;