Don't show url for matrix.to links
Since we open these in neochat directly BUG: 457835
This commit is contained in:
@@ -449,14 +449,15 @@ Kirigami.ApplicationWindow {
|
|||||||
|
|
||||||
property Item hoverLinkIndicator: QQC2.Control {
|
property Item hoverLinkIndicator: QQC2.Control {
|
||||||
parent: overlay.parent
|
parent: overlay.parent
|
||||||
property alias text: linkText.text
|
property string text
|
||||||
opacity: text.length > 0 ? 1 : 0
|
opacity: linkText.text.length > 0 ? 1 : 0
|
||||||
|
|
||||||
z: 20
|
z: 20
|
||||||
x: 0
|
x: 0
|
||||||
y: parent.height - implicitHeight
|
y: parent.height - implicitHeight
|
||||||
contentItem: QQC2.Label {
|
contentItem: QQC2.Label {
|
||||||
id: linkText
|
id: linkText
|
||||||
|
text: parent.text.startsWith("https://matrix.to/") ? "" : parent.text
|
||||||
}
|
}
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
|
|||||||
Reference in New Issue
Block a user