Update CustomQuoter.plugin.js

This commit is contained in:
Mirco Wittrien 2021-03-18 16:29:35 +01:00 committed by GitHub
parent 2a0a3e0b6a
commit e3f85be1f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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("")});
}
}