From 13f88752632112ed25cda1ae8ce8cb6d81b9b553 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 27 Jul 2020 11:38:26 -0400 Subject: [PATCH] fix: hide replybox after sending a message --- ui/app/AppLayouts/Chat/ChatColumn/ChatButtons.qml | 3 ++- ui/app/AppLayouts/Chat/ChatColumn/ChatInput.qml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/ChatButtons.qml b/ui/app/AppLayouts/Chat/ChatColumn/ChatButtons.qml index 12bba63554..b96b0d7a0f 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/ChatButtons.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/ChatButtons.qml @@ -25,13 +25,14 @@ Item { onClicked: { if(chatColumn.isImage){ chatsModel.sendImage(sendImageArea.image); - chatColumn.hideExtendedArea(); } if(txtData.text.trim() > 0){ chatsModel.sendMessage(txtData.text, chatColumn.isReply ? SelectedMessage.messageId : "") txtData.text = ""; } + + chatColumn.hideExtendedArea(); } background: Rectangle { color: parent.enabled ? Style.current.blue : Style.current.grey diff --git a/ui/app/AppLayouts/Chat/ChatColumn/ChatInput.qml b/ui/app/AppLayouts/Chat/ChatColumn/ChatInput.qml index 7118722ddd..fcbb9eb5c2 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/ChatInput.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/ChatInput.qml @@ -37,7 +37,6 @@ Rectangle { if (event.modifiers === Qt.NoModifier && (event.key === Qt.Key_Enter || event.key === Qt.Key_Return)) { if(chatColumn.isImage){ chatsModel.sendImage(sendImageArea.image); - chatColumn.hideExtendedArea(); } if(txtData.text.trim().length > 0){ @@ -48,6 +47,7 @@ Rectangle { sendMessageSound.stop() Qt.callLater(sendMessageSound.play); } + chatColumn.hideExtendedArea(); } }