Update EditUsers.plugin.js

This commit is contained in:
Mirco Wittrien 2021-09-27 21:25:41 +02:00
parent 3c46d7b7b9
commit 93260720c2
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,6 @@ module.exports = (_ => {
VoiceUser: "render",
Account: "render",
PrivateChannelEmptyMessage: "default",
MessageHeader: "default",
MessageUsername: "default",
MessageContent: "type",
Reaction: "render",
@ -1105,6 +1104,8 @@ module.exports = (_ => {
if (data && data.name) userName.props.children = data.name;
this.changeUserColor(userName, e.instance.props.result.user.id);
}
let avatar = BDFDB.ReactUtils.findChild(e.returnvalue, {props: [["className", BDFDB.disCN.searchpopoutdisplayavatar]]});
if (avatar) avatar.props.src = this.getUserAvatar(e.instance.props.result.user.id);
}
}