Allow reporting others
Instead of only being able to report yourself BUG: 475227
This commit is contained in:
@@ -120,7 +120,7 @@ Loader {
|
|||||||
root.connection.room(targetRoomId).postHtmlMessage(root.plainText, root.htmlText.length > 0 ? root.htmlText : root.plainText)
|
root.connection.room(targetRoomId).postHtmlMessage(root.plainText, root.htmlText.length > 0 ? root.htmlText : root.plainText)
|
||||||
page.closeDialog()
|
page.closeDialog()
|
||||||
})
|
})
|
||||||
}
|
g
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
visible: author.isLocalUser || currentRoom.canSendState("redact")
|
visible: author.isLocalUser || currentRoom.canSendState("redact")
|
||||||
@@ -140,7 +140,7 @@ Loader {
|
|||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: i18nc("@action:button 'Report' as in 'Report this event to the administrators'", "Report")
|
text: i18nc("@action:button 'Report' as in 'Report this event to the administrators'", "Report")
|
||||||
icon.name: "dialog-warning-symbolic"
|
icon.name: "dialog-warning-symbolic"
|
||||||
visible: author.isLocalUser
|
visible: !author.isLocalUser
|
||||||
onTriggered: applicationWindow().pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/ReportSheet.qml", {room: currentRoom, eventId: eventId}, {
|
onTriggered: applicationWindow().pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/ReportSheet.qml", {room: currentRoom, eventId: eventId}, {
|
||||||
title: i18nc("@title", "Report Message"),
|
title: i18nc("@title", "Report Message"),
|
||||||
width: Kirigami.Units.gridUnit * 25
|
width: Kirigami.Units.gridUnit * 25
|
||||||
|
|||||||
Reference in New Issue
Block a user