Remove the option to edit the messages of other users.
This commit is contained in:
committed by
Carl Schwan
parent
8f1f02fa22
commit
b67f03d33f
@@ -52,7 +52,9 @@ Item {
|
|||||||
hoverComponent.showEdit = author.id === Controller.activeConnection.localUserId && (model.eventType === "emote" || model.eventType === "message");
|
hoverComponent.showEdit = author.id === Controller.activeConnection.localUserId && (model.eventType === "emote" || model.eventType === "message");
|
||||||
|
|
||||||
hoverComponent.editClicked = () => {
|
hoverComponent.editClicked = () => {
|
||||||
chatTextInput.edit(message, model.formattedBody, eventId);
|
if (hoverComponent.showEdit) {
|
||||||
|
chatTextInput.edit(message, model.formattedBody, eventId);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
hoverComponent.replyClicked = () => {
|
hoverComponent.replyClicked = () => {
|
||||||
replyToMessage(author, message, eventId);
|
replyToMessage(author, message, eventId);
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ Kirigami.ScrollablePage {
|
|||||||
QQC2.Button {
|
QQC2.Button {
|
||||||
QQC2.ToolTip.text: i18n("Edit")
|
QQC2.ToolTip.text: i18n("Edit")
|
||||||
QQC2.ToolTip.visible: hovered
|
QQC2.ToolTip.visible: hovered
|
||||||
visible: actions.hovered && showEdit
|
visible: hoverActions.showEdit
|
||||||
icon.name: "document-edit"
|
icon.name: "document-edit"
|
||||||
onClicked: hoverActions.editClicked()
|
onClicked: hoverActions.editClicked()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user