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