Update QuickMention.plugin.js

This commit is contained in:
Mirco Wittrien 2021-07-21 06:51:17 +01:00 committed by GitHub
parent 3d8bac6264
commit 16a809abb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
* @name QuickMention
* @author DevilBro
* @authorId 278543574059057154
* @version 1.0.2
* @version 1.0.3
* @description Adds a Mention Button to the Message Options Bar
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": {
"name": "QuickMention",
"author": "DevilBro",
"version": "1.0.2",
"version": "1.0.3",
"description": "Adds a Mention Button to the Message Options Bar"
}
};
@ -76,7 +76,7 @@ module.exports = (_ => {
onStop () {}
onMessageOptionToolbar (e) {
if (!e.instance.props.expanded && e.instance.props.message.author.id != BDFDB.UserUtils.me.id && (BDFDB.UserUtils.can("SEND_MESSAGES") || e.instance.props.channel && (e.instance.props.channel.isDM() || e.instance.props.channel.isGroupDM()))) {
if (e.instance.props.message.author.id != BDFDB.UserUtils.me.id && (BDFDB.UserUtils.can("SEND_MESSAGES") || e.instance.props.channel && (e.instance.props.channel.isDM() || e.instance.props.channel.isGroupDM()))) {
e.returnvalue.props.children.splice(1, 0, BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TooltipContainer, {
key: "mention",
text: BDFDB.LanguageUtils.LanguageStrings.MENTION,
@ -97,4 +97,4 @@ module.exports = (_ => {
}
};
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
})();
})();