Add redacting event via context menu

This commit is contained in:
vSLG
2020-03-26 17:31:57 -03:00
committed by miruka
parent 554f5d6013
commit b3f1075507
4 changed files with 58 additions and 0 deletions

View File

@@ -218,6 +218,19 @@ HColumnLayout {
}
}
HMenuItemPopupSpawner {
icon.name: "remove-message"
text: qsTr("Remove")
popup: "Popups/RedactEvents.qml"
popupParent: chat
properties: ({
userId: chat.userId,
roomId: chat.roomId,
eventIds: [model.event_id]
})
}
HMenuItem {
icon.name: "debug"
text: qsTr("Debug this event")