From e3f85be1f6c509e16959c5a45b3394a4fda1d5e8 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 18 Mar 2021 16:29:35 +0100 Subject: [PATCH] Update CustomQuoter.plugin.js --- Plugins/CustomQuoter/CustomQuoter.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/CustomQuoter/CustomQuoter.plugin.js b/Plugins/CustomQuoter/CustomQuoter.plugin.js index cca320062b..9e2bfcca86 100644 --- a/Plugins/CustomQuoter/CustomQuoter.plugin.js +++ b/Plugins/CustomQuoter/CustomQuoter.plugin.js @@ -367,7 +367,7 @@ module.exports = (_ => { BDFDB.LibraryRequires.electron.clipboard.write({text: text}); BDFDB.NotificationUtils.toast(this.labels.toast_quotecopied, {type: "success"}); } - else BDFDB.LibraryModules.DispatchUtils.ComponentDispatch.dispatchToLastSubscribed(BDFDB.DiscordConstants.ComponentActions.INSERT_TEXT, {content: [ChannelTextAreaForm && ChannelTextAreaForm.state.textValue && "\n", text].filter(n => n).join("")}); + else BDFDB.LibraryModules.DispatchUtils.ComponentDispatch.dispatchToLastSubscribed(BDFDB.DiscordConstants.ComponentActions.INSERT_TEXT, {content: [ChannelTextAreaForm && ChannelTextAreaForm.state.textValue && !ChannelTextAreaForm.state.textValue.endsWith("\n") && "\n", text].filter(n => n).join("")}); } }