diff --git a/imports/NeoChat/Component/Timeline/ReplyComponent.qml b/imports/NeoChat/Component/Timeline/ReplyComponent.qml index f63042d6e..a4cdc7c50 100644 --- a/imports/NeoChat/Component/Timeline/ReplyComponent.qml +++ b/imports/NeoChat/Component/Timeline/ReplyComponent.qml @@ -79,6 +79,7 @@ MouseArea { id: replyText textMessage: reply.display textFormat: Text.RichText + hasContextMenu: false width: Math.min(implicitWidth, bubbleMaxWidth - Kirigami.Units.largeSpacing * 3) x: Kirigami.Units.smallSpacing * 3 + replyAvatar.width } diff --git a/imports/NeoChat/Component/Timeline/TextDelegate.qml b/imports/NeoChat/Component/Timeline/TextDelegate.qml index 61e238cc1..f365ede6a 100644 --- a/imports/NeoChat/Component/Timeline/TextDelegate.qml +++ b/imports/NeoChat/Component/Timeline/TextDelegate.qml @@ -17,8 +17,17 @@ TextEdit { property bool isEmote: false property string textMessage: model.display property bool spoilerRevealed: !hasSpoiler.test(textMessage) + + property bool hasContextMenu: true + + signal requestOpenMessageContext() + ListView.onReused: Qt.binding(() => !hasSpoiler.test(textMessage)) + Layout.fillWidth: Config.compactLayout + Layout.rightMargin: Kirigami.Units.largeSpacing + Layout.leftMargin: Config.showAvatarInTimeline ? Kirigami.Units.largeSpacing : 0 + text: "