From 5b952e5ffe26caf354997abd0d3b7df36f541bc9 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Wed, 24 Feb 2021 20:39:14 +0100 Subject: [PATCH] Update RemoveNicknames.plugin.js --- Plugins/RemoveNicknames/RemoveNicknames.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/RemoveNicknames/RemoveNicknames.plugin.js b/Plugins/RemoveNicknames/RemoveNicknames.plugin.js index 1c0f2b0fdb..97d1cc0b3e 100644 --- a/Plugins/RemoveNicknames/RemoveNicknames.plugin.js +++ b/Plugins/RemoveNicknames/RemoveNicknames.plugin.js @@ -14,7 +14,7 @@ module.exports = (_ => { "info": { "name": "RemoveNicknames", "author": "DevilBro", - "version": "1.3.7", + "version": "1.3.8", "description": "Replace all nicknames with the actual accountnames" }, "changeLog": { @@ -201,7 +201,7 @@ module.exports = (_ => { if (e.instance.props.userId && settings.changeInMentions) { let mention = BDFDB.ReactUtils.findChild(e.returnvalue, {name: "Mention"}); let newName = mention && this.getNewName(BDFDB.LibraryModules.UserStore.getUser(e.instance.props.userId)); - if (newName) mention.props.children[0] = "@" + newName; + if (newName) mention.props.children = "@" + newName; } } @@ -244,4 +244,4 @@ module.exports = (_ => { } }; })(window.BDFDB_Global.PluginUtils.buildPlugin(config)); -})(); \ No newline at end of file +})();