Fixed bug where EditUsers replaces "See all pins" with the Name of the person who pinned

This commit is contained in:
Mirco Wittrien 2019-01-04 15:41:38 +01:00
parent 004e9cf9ba
commit 32ff8ab7d3
1 changed files with 3 additions and 7 deletions

View File

@ -172,7 +172,7 @@ class EditUsers {
getDescription () {return "Allows you to change the icon, name, tag and color of users. Does not work in compact mode.";}
getVersion () {return "3.1.2";}
getVersion () {return "3.1.3";}
getAuthor () {return "DevilBro";}
@ -525,8 +525,8 @@ class EditUsers {
processClickable (instance, wrapper) {
if (!wrapper || !instance.props || !instance.props.className) return;
else if (instance.props.tag == "a" && instance.props.className.indexOf(BDFDB.disCN.anchorunderlineonhover) > -1) {
if (wrapper.parentElement.classList.contains(BDFDB.disCN.messagesystemcontent)) {
if (instance.props.tag == "a" && instance.props.className.indexOf(BDFDB.disCN.anchorunderlineonhover) > -1) {
if (wrapper.parentElement.classList.contains(BDFDB.disCN.messagesystemcontent) && wrapper.parentElement.querySelector("a") == wrapper) {
let message = BDFDB.getKeyInformation({node:wrapper.parentElement, key:"message", up:true});
if (message) this.changeName(message.author, wrapper);
}
@ -678,10 +678,6 @@ class EditUsers {
avatar.style.setProperty("background-position", "center");
avatar.style.setProperty("background-size", "cover");
}
else {
avatar.style.removeProperty("background-position");
avatar.style.removeProperty("background-size");
}
}
if (data.url || data.removeIcon) {
avatar.EditUsersChangeObserver = new MutationObserver((changes, _) => {