Fix qml explicit signal argument
This commit is contained in:
@@ -99,7 +99,7 @@ a{
|
||||
wrapMode: Text.Wrap
|
||||
textFormat: Text.RichText
|
||||
|
||||
onLinkActivated: {
|
||||
onLinkActivated: link => {
|
||||
spoilerRevealed = true
|
||||
RoomManager.openResource(link)
|
||||
}
|
||||
|
||||
@@ -52,6 +52,6 @@ RowLayout {
|
||||
Layout.fillWidth: true
|
||||
wrapMode: Text.WordWrap
|
||||
textFormat: Text.RichText
|
||||
onLinkActivated: linkClicked(link)
|
||||
onLinkActivated: link => linkClicked(link)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ QQC2.Control {
|
||||
text: `<style>a {text-decoration: none;}</style><a href="https://matrix.to/#/${modelData.author.id}" style="color: ${modelData.author.color}">${modelData.authorDisplayName}</a> ${modelData.text}`
|
||||
|
||||
onAvatarClicked: RoomManager.openResource("https://matrix.to/#/" + modelData.author.id)
|
||||
onLinkClicked: RoomManager.openResource(link)
|
||||
onLinkClicked: link => RoomManager.openResource(link)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user