fixed typing users issue
This commit is contained in:
parent
18c9f83cc6
commit
205def7414
|
@ -3,7 +3,7 @@
|
|||
class EditUsers {
|
||||
getName () {return "EditUsers";}
|
||||
|
||||
getVersion () {return "3.2.8";}
|
||||
getVersion () {return "3.2.9";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -11,7 +11,7 @@ class EditUsers {
|
|||
|
||||
initConstructor () {
|
||||
this.changelog = {
|
||||
"fixed":[["ScreenShare","Avatar in the ScreenShare popout is now properly changed"]]
|
||||
"fixed":[["Typing Users","The plugin now properly changes the names in the typing users list"]]
|
||||
};
|
||||
|
||||
this.labels = {};
|
||||
|
@ -550,7 +550,7 @@ class EditUsers {
|
|||
}
|
||||
|
||||
processTypingUsers (instance, wrapper) {
|
||||
let users = !instance.state.typingUsers ? [] : Object.keys(instance.state.typingUsers).filter(id => id != BDFDB.myData.id).filter(id => !this.RelationshipUtils.isBlocked(id)).map(id => this.UserUtils.getUser(id)).filter(id => id != null);
|
||||
let users = !instance.props.typingUsers ? [] : Object.keys(instance.props.typingUsers).filter(id => id != BDFDB.myData.id).filter(id => !this.RelationshipUtils.isBlocked(id)).map(id => this.UserUtils.getUser(id)).filter(id => id != null);
|
||||
wrapper.querySelectorAll(BDFDB.dotCNS.typing + "strong").forEach((username, i) => {
|
||||
if (users[i] && username) this.changeName2(users[i], username);
|
||||
});
|
||||
|
|
|
@ -3,13 +3,17 @@
|
|||
class RemoveNicknames {
|
||||
getName () {return "RemoveNicknames";}
|
||||
|
||||
getVersion () {return "1.1.4";}
|
||||
getVersion () {return "1.1.5";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
getDescription () {return "Replace all nicknames with the actual accountnames.";}
|
||||
|
||||
initConstructor () {
|
||||
this.changelog = {
|
||||
"fixed":[["Typing Users","The plugin now properly changes the names in the typing users list"]]
|
||||
};
|
||||
|
||||
this.patchModules = {
|
||||
"NameTag":"componentDidMount",
|
||||
"TypingUsers":"componentDidUpdate",
|
||||
|
@ -121,7 +125,7 @@ class RemoveNicknames {
|
|||
}
|
||||
|
||||
processTypingUsers (instance, wrapper) {
|
||||
let users = !instance.state.typingUsers ? [] : Object.keys(instance.state.typingUsers).filter(id => id != BDFDB.myData.id).filter(id => !this.RelationshipUtils.isBlocked(id)).map(id => this.UserUtils.getUser(id)).filter(id => id != null);
|
||||
let users = !instance.props.typingUsers ? [] : Object.keys(instance.props.typingUsers).filter(id => id != BDFDB.myData.id).filter(id => !this.RelationshipUtils.isBlocked(id)).map(id => this.UserUtils.getUser(id)).filter(id => id != null);
|
||||
wrapper.querySelectorAll("strong").forEach((username, i) => {
|
||||
if (users[i] && username) BDFDB.setInnerText(username, this.getNewName(users[i]));
|
||||
});
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
#app-mount .input-cIJ7To:hover {
|
||||
border-color: #040405;
|
||||
}
|
||||
#app-mount .backdrop-1wrmKB,
|
||||
#app-mount .regionSelectModal-12e-57,
|
||||
#app-mount .wrapper-2ZbzR9,
|
||||
#app-mount .slide-2pHaq5 {
|
||||
|
|
Loading…
Reference in New Issue