Don't overwrite active status of attachment row for voice notes, fixes #481

This commit is contained in:
Sebastian Wolf 2022-04-24 14:39:36 +02:00
parent ebe0143a8a
commit 856a16c640
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A
2 changed files with 1 additions and 2 deletions

View file

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

View file

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