From af30ce886ae86a0d0ff2d413c545b7a68344c8b4 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 15 Feb 2021 15:04:55 +0100 Subject: [PATCH] Update MessageUtilities.plugin.js --- Plugins/MessageUtilities/MessageUtilities.plugin.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Plugins/MessageUtilities/MessageUtilities.plugin.js b/Plugins/MessageUtilities/MessageUtilities.plugin.js index e8a923a843..341e678d43 100644 --- a/Plugins/MessageUtilities/MessageUtilities.plugin.js +++ b/Plugins/MessageUtilities/MessageUtilities.plugin.js @@ -14,8 +14,13 @@ module.exports = (_ => { "info": { "name": "MessageUtilities", "author": "DevilBro", - "version": "1.8.6", + "version": "1.8.7", "description": "Offers you a number of useful message options (quick actions)" + }, + "changeLog": { + "fixed": { + "Edit": "Trying to edit a message that is alsready being edited no longer resets the edit" + } } }; @@ -368,7 +373,7 @@ module.exports = (_ => { } doEdit ({messageDiv, message}, action) { - if (message.author.id == BDFDB.UserUtils.me.id) { + if (message.author.id == BDFDB.UserUtils.me.id && !messageDiv.querySelector(BDFDB.dotCN.messagechanneltextarea)) { BDFDB.LibraryModules.MessageUtils.startEditMessage(message.channel_id, message.id, message.content); if (toasts[action]) BDFDB.NotificationUtils.toast(this.formatToast(BDFDB.LanguageUtils.LanguageStrings.EDITING_MESSAGE), {type: "success"}); }