diff --git a/src/qml/Component/Timeline/ReplyComponent.qml b/src/qml/Component/Timeline/ReplyComponent.qml index db2fd7eb7..75311025d 100644 --- a/src/qml/Component/Timeline/ReplyComponent.qml +++ b/src/qml/Component/Timeline/ReplyComponent.qml @@ -96,6 +96,7 @@ Item { RichLabel { textMessage: reply.display textFormat: Text.RichText + isReplyLabel: true } } Component { diff --git a/src/qml/Component/Timeline/RichLabel.qml b/src/qml/Component/Timeline/RichLabel.qml index baf7c2a8c..f7121f89d 100644 --- a/src/qml/Component/Timeline/RichLabel.qml +++ b/src/qml/Component/Timeline/RichLabel.qml @@ -15,6 +15,7 @@ TextEdit { readonly property var hasSpoiler: /data-mx-spoiler/g property bool isEmote: false + property bool isReplyLabel: false readonly property var linkRegex: /(href=["'])?(\b(https?):\/\/[^\s\<\>\"\'\\]+)/g property string textMessage: model.display.includes("http") @@ -74,7 +75,7 @@ a{ background: " + Kirigami.Theme.textColor + "; } " : "") + " -" + textMessage + (isEdited ? (" " + "" + i18n(" (edited)") + "") : "") +" + textMessage + (isEdited && !contentLabel.isReplyLabel ? (" " + "" + i18n(" (edited)") + "") : "") color: Kirigami.Theme.textColor selectedTextColor: Kirigami.Theme.highlightedTextColor