Update EditUsers.plugin.js

This commit is contained in:
Mirco Wittrien 2021-07-05 21:57:00 +02:00
parent 3de9fb47de
commit eb0ff910aa
1 changed files with 1 additions and 1 deletions

View File

@ -637,7 +637,7 @@ module.exports = (_ => {
let name = this.getUserData(recipientId).username;
let avatar = BDFDB.ReactUtils.findChild(e.returnvalue.props.children, {props: "src"});
if (avatar) avatar.props.src = this.getUserAvatar(recipientId);
let userName = BDFDB.ReactUtils.findChild(e.returnvalue.props.children, {name: "h1"});
let userName = BDFDB.ReactUtils.findChild(e.returnvalue.props.children, {name: "EmptyMessageHeader"});
if (userName) {
userName.props.children = BDFDB.ReactUtils.createElement("span", {children: name});
this.changeUserColor(userName.props.children, recipientId);