fix: disable quick actions when editting a message

also move the top/bottom margins one level up so that the message editor
gets the same margins as well

Fixes: #8185
This commit is contained in:
Lukáš Tinkl 2022-11-21 17:07:18 +01:00 committed by Lukáš Tinkl
parent c454878e0d
commit 8e4d9be779
2 changed files with 5 additions and 4 deletions

View File

@ -209,6 +209,9 @@ Control {
ColumnLayout {
id: messageLayout
anchors.fill: parent
anchors.topMargin: 2
anchors.bottomMargin: 2
spacing: 2
Loader {
Layout.fillWidth: true
@ -234,7 +237,6 @@ Control {
implicitWidth: root.messageDetails.sender.profileImage.assetSettings.width
implicitHeight: profileImage.visible ? profileImage.height : 0
Layout.alignment: Qt.AlignTop
Layout.topMargin: 2
StatusSmartIdenticon {
id: profileImage
active: root.showHeader

View File

@ -386,8 +386,6 @@ Loader {
StatusMessage {
id: delegate
Layout.fillWidth: true
Layout.topMargin: 2
Layout.bottomMargin: 2
function convertContentType(value) {
switch (value) {
case Constants.messageContentType.messageType:
@ -477,7 +475,8 @@ Loader {
hideQuickActions: root.isChatBlocked ||
root.placeholderMessage ||
root.activityCenterMessage ||
root.isInPinnedPopup
root.isInPinnedPopup ||
root.editModeOn
hideMessage: d.isSingleImage && d.unfurledLinksCount === 1
overrideBackground: root.activityCenterMessage || root.placeholderMessage