This commit is contained in:
Mirco Wittrien 2020-07-12 17:40:01 +02:00
parent cf2918619f
commit 278d6788d8
1 changed files with 10 additions and 13 deletions

View File

@ -6,7 +6,7 @@ var EditUsers = (_ => {
return class EditUsers { return class EditUsers {
getName () {return "EditUsers";} getName () {return "EditUsers";}
getVersion () {return "3.9.0";} getVersion () {return "3.9.1";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -80,9 +80,6 @@ var EditUsers = (_ => {
${BDFDB.dotCN.voicedetailschannel}:hover > span[style*="color"] { ${BDFDB.dotCN.voicedetailschannel}:hover > span[style*="color"] {
text-decoration: underline; text-decoration: underline;
} }
${BDFDB.dotCN.dmchannel}:hover ${BDFDB.dotCN.namecontainername} span[style*="color"] {
filter: brightness(150%);
}
${BDFDB.dotCNS.userpopoutheadernamewrapper + BDFDB.dotCN.bottag} { ${BDFDB.dotCNS.userpopoutheadernamewrapper + BDFDB.dotCN.bottag} {
position: relative; position: relative;
bottom: 1px; bottom: 1px;
@ -238,6 +235,13 @@ var EditUsers = (_ => {
// Begin of own functions // Begin of own functions
onSettingsClosed () {
if (this.SettingsUpdated) {
delete this.SettingsUpdated;
this.forceUpdateAll();
}
}
onUserContextMenu (e) { onUserContextMenu (e) {
if (e.instance.props.user) { if (e.instance.props.user) {
@ -285,13 +289,6 @@ var EditUsers = (_ => {
})); }));
} }
} }
onSettingsClosed () {
if (this.SettingsUpdated) {
delete this.SettingsUpdated;
this.forceUpdateAll();
}
}
processChannelEditorContainer (e) { processChannelEditorContainer (e) {
if (!e.instance.props.disabled && e.instance.props.channel && e.instance.props.channel.type == BDFDB.DiscordConstants.ChannelTypes.DM && e.instance.props.type == BDFDB.DiscordConstants.TextareaTypes.NORMAL && settings.changeInChatTextarea) { if (!e.instance.props.disabled && e.instance.props.channel && e.instance.props.channel.type == BDFDB.DiscordConstants.ChannelTypes.DM && e.instance.props.type == BDFDB.DiscordConstants.TextareaTypes.NORMAL && settings.changeInChatTextarea) {
@ -681,7 +678,7 @@ var EditUsers = (_ => {
} }
} }
else { else {
this.changeUserColor(e.returnvalue.props.name, e.instance.props.user.id, {changeBackground: true}); this.changeUserColor(e.returnvalue.props.name, e.instance.props.user.id, {changeBackground: true, modify: BDFDB.ObjectUtils.extract(Object.assign({}, e.instance.props, e.instance.state), "hovered", "selected")});
this.injectBadge(BDFDB.ReactUtils.getValue(e.returnvalue, "props.decorators.props.children"), e.instance.props.user.id, BDFDB.LibraryModules.LastGuildStore.getGuildId(), 2, { this.injectBadge(BDFDB.ReactUtils.getValue(e.returnvalue, "props.decorators.props.children"), e.instance.props.user.id, BDFDB.LibraryModules.LastGuildStore.getGuildId(), 2, {
tagClass: BDFDB.disCN.bottagmember tagClass: BDFDB.disCN.bottagmember
}); });
@ -789,7 +786,7 @@ var EditUsers = (_ => {
} }
else { else {
e.returnvalue.props.name = BDFDB.ReactUtils.createElement("span", {children: this.getUserData(e.instance.props.user.id).username}); e.returnvalue.props.name = BDFDB.ReactUtils.createElement("span", {children: this.getUserData(e.instance.props.user.id).username});
this.changeUserColor(e.returnvalue.props.name, e.instance.props.user.id, {changeBackground: true, modify: BDFDB.ObjectUtils.extract(e.instance.props, "selected", "hasUnreadMessages", "muted")}); this.changeUserColor(e.returnvalue.props.name, e.instance.props.user.id, {changeBackground: true, modify: BDFDB.ObjectUtils.extract(Object.assign({}, e.instance.props, e.instance.state), "hovered", "selected", "hasUnreadMessages", "muted")});
e.returnvalue.props.name = [e.returnvalue.props.name]; e.returnvalue.props.name = [e.returnvalue.props.name];
e.returnvalue.props.avatar.props.src = this.getUserAvatar(e.instance.props.user.id); e.returnvalue.props.avatar.props.src = this.getUserAvatar(e.instance.props.user.id);
this.injectBadge(e.returnvalue.props.name, e.instance.props.user.id, null, 1); this.injectBadge(e.returnvalue.props.name, e.instance.props.user.id, null, 1);