From 9ab70c60fea6a7e19918e6b3c80cb82e6758174d Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Mon, 4 Jul 2022 17:24:13 +0200 Subject: [PATCH] =?UTF-8?q?In=20chat=20conversation,=20hide=20keyboard=20w?= =?UTF-8?q?hen=20the=20action=20pop-up=20bubble=20(reply,=20transfer,=20et?= =?UTF-8?q?c)=20appears,=20and=20show=20keyboard=20when=20=E2=80=9Creply?= =?UTF-8?q?=E2=80=99=20is=20selected.=20This=20matches=20the=20usual=20beh?= =?UTF-8?q?aviours=20of=20other=20messaging=20apps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/ChatConversationView.m | 1 + Classes/LinphoneUI/UIChatBubbleTextCell.m | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/ChatConversationView.m b/Classes/ChatConversationView.m index 823bf1742..3db5d7864 100644 --- a/Classes/ChatConversationView.m +++ b/Classes/ChatConversationView.m @@ -2186,6 +2186,7 @@ void on_shared_player_eof_reached(LinphonePlayer *p) { _showReplyView = true; [self updateFramesInclRecordingAndReplyView]; [self.tableController scrollToMessage:message]; + [self.messageField becomeFirstResponder]; } -(void) handlePendingTransferIfAny { diff --git a/Classes/LinphoneUI/UIChatBubbleTextCell.m b/Classes/LinphoneUI/UIChatBubbleTextCell.m index 156bbb30f..291e5fb89 100644 --- a/Classes/LinphoneUI/UIChatBubbleTextCell.m +++ b/Classes/LinphoneUI/UIChatBubbleTextCell.m @@ -851,7 +851,8 @@ static const CGFloat REPLY_OR_FORWARD_TAG_HEIGHT = 18; _messageActionsTitles = [[NSMutableArray alloc] init]; _messageActionsBlocks = [[NSMutableArray alloc] init]; _messageActionsIcons = [[NSMutableArray alloc] init]; - + + [VIEW(ChatConversationView).messageField resignFirstResponder]; UIChatBubbleTextCell *thiz = self; LinphoneChatMessageState state = linphone_chat_message_get_state(self.message);