Update RemoveNicknames.plugin.js

This commit is contained in:
Mirco Wittrien 2021-02-24 20:39:14 +01:00 committed by GitHub
parent 04c0794a8b
commit 5b952e5ffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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