Fixed bug where EditUsers replaces "See all pins" with the Name of the person who pinned
This commit is contained in:
parent
004e9cf9ba
commit
32ff8ab7d3
|
@ -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.";}
|
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";}
|
getAuthor () {return "DevilBro";}
|
||||||
|
|
||||||
|
@ -525,8 +525,8 @@ class EditUsers {
|
||||||
|
|
||||||
processClickable (instance, wrapper) {
|
processClickable (instance, wrapper) {
|
||||||
if (!wrapper || !instance.props || !instance.props.className) return;
|
if (!wrapper || !instance.props || !instance.props.className) return;
|
||||||
else if (instance.props.tag == "a" && instance.props.className.indexOf(BDFDB.disCN.anchorunderlineonhover) > -1) {
|
if (instance.props.tag == "a" && instance.props.className.indexOf(BDFDB.disCN.anchorunderlineonhover) > -1) {
|
||||||
if (wrapper.parentElement.classList.contains(BDFDB.disCN.messagesystemcontent)) {
|
if (wrapper.parentElement.classList.contains(BDFDB.disCN.messagesystemcontent) && wrapper.parentElement.querySelector("a") == wrapper) {
|
||||||
let message = BDFDB.getKeyInformation({node:wrapper.parentElement, key:"message", up:true});
|
let message = BDFDB.getKeyInformation({node:wrapper.parentElement, key:"message", up:true});
|
||||||
if (message) this.changeName(message.author, wrapper);
|
if (message) this.changeName(message.author, wrapper);
|
||||||
}
|
}
|
||||||
|
@ -678,10 +678,6 @@ class EditUsers {
|
||||||
avatar.style.setProperty("background-position", "center");
|
avatar.style.setProperty("background-position", "center");
|
||||||
avatar.style.setProperty("background-size", "cover");
|
avatar.style.setProperty("background-size", "cover");
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
avatar.style.removeProperty("background-position");
|
|
||||||
avatar.style.removeProperty("background-size");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (data.url || data.removeIcon) {
|
if (data.url || data.removeIcon) {
|
||||||
avatar.EditUsersChangeObserver = new MutationObserver((changes, _) => {
|
avatar.EditUsersChangeObserver = new MutationObserver((changes, _) => {
|
||||||
|
|
Loading…
Reference in New Issue