Remove the option to edit the messages of other users.

This commit is contained in:
Suraj Kumar Mahto
2021-03-17 18:54:32 +00:00
committed by Carl Schwan
parent 8f1f02fa22
commit b67f03d33f
2 changed files with 4 additions and 2 deletions

View File

@@ -52,7 +52,9 @@ Item {
hoverComponent.showEdit = author.id === Controller.activeConnection.localUserId && (model.eventType === "emote" || model.eventType === "message");
hoverComponent.editClicked = () => {
chatTextInput.edit(message, model.formattedBody, eventId);
if (hoverComponent.showEdit) {
chatTextInput.edit(message, model.formattedBody, eventId);
}
};
hoverComponent.replyClicked = () => {
replyToMessage(author, message, eventId);