Update EditUsers.plugin.js

This commit is contained in:
Mirco Wittrien 2019-06-16 21:11:15 +02:00
parent 102910ea50
commit 6c86527c37
1 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,7 @@
class EditUsers {
getName () {return "EditUsers";}
getVersion () {return "3.4.1";}
getVersion () {return "3.4.2";}
getAuthor () {return "DevilBro";}
@ -543,7 +543,10 @@ class EditUsers {
processAccount (instance, wrapper) {
let user = BDFDB.getReactValue(instance, "_reactInternalFiber.child.stateNode.props.currentUser");
if (user) this.changeName(user, wrapper.querySelector(BDFDB.dotCN.accountinfousername));
if (user) {
this.changeName(user, wrapper.querySelector(BDFDB.dotCN.accountinfousername));
this.changeAvatar(user, this.getAvatarDiv(wrapper));
}
}
processMessageUsername (instance, wrapper) {