From 856a16c640c04788461ac15bcee42afa59a74d63 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Sun, 24 Apr 2022 14:39:36 +0200 Subject: [PATCH] Don't overwrite active status of attachment row for voice notes, fixes #481 --- qml/components/VoiceNoteOverlay.qml | 1 - qml/pages/ChatPage.qml | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/qml/components/VoiceNoteOverlay.qml b/qml/components/VoiceNoteOverlay.qml index cbec5a9..54ae4c2 100644 --- a/qml/components/VoiceNoteOverlay.qml +++ b/qml/components/VoiceNoteOverlay.qml @@ -209,7 +209,6 @@ Item { attachmentOptionsFlickable.isNeeded = false; attachmentPreviewRow.isVoiceNote = true; attachmentPreviewRow.attachmentDescription = qsTr("Voice Note (%1)").arg(recordingDurationLabel.text); - attachmentPreviewRow.visible = true; controlSendButton(); voiceNoteOverlayLoader.active = false; } diff --git a/qml/pages/ChatPage.qml b/qml/pages/ChatPage.qml index a4af816..05df3a7 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -1696,7 +1696,7 @@ Page { Row { id: attachmentPreviewRow - visible: (!!locationData || !!fileProperties) && !inlineQuery.userNameIsValid + visible: (!!locationData || !!fileProperties || isVoiceNote) && !inlineQuery.userNameIsValid spacing: Theme.paddingMedium width: parent.width layoutDirection: Qt.RightToLeft