Add menu items to copy matrix.to links for users and messages

BUG: 456637
This commit is contained in:
Tobias Fella
2022-11-27 19:50:29 +01:00
parent d0dd86e6e8
commit 1366158b45
3 changed files with 18 additions and 0 deletions

View File

@@ -165,6 +165,8 @@ if(ANDROID)
"download"
"smiley"
"tools-check-spelling"
"username-copy"
"edit-copy"
)
else()
target_link_libraries(neochat PUBLIC Qt::Widgets KF5::KIOWidgets)

View File

@@ -160,6 +160,15 @@ Kirigami.OverlaySheet {
}
}
}
Kirigami.BasicListItem {
action: Kirigami.Action {
text: i18n("Copy link")
icon.name: "username-copy"
onTriggered: {
Clipboard.saveText("https://matrix.to/#/" + user.id)
}
}
}
Component {
id: fullScreenImage

View File

@@ -76,6 +76,13 @@ Loader {
width: Kirigami.Units.gridUnit * 25
});
}
},
Kirigami.Action {
text: i18n("Copy Link")
icon.name: "edit-copy"
onTriggered: {
Clipboard.saveText("https://matrix.to/#/" + currentRoom.id + "/" + loadRoot.eventId)
}
}
]