stuff
This commit is contained in:
parent
50187678ab
commit
a50982f055
|
@ -3,7 +3,7 @@
|
|||
class FriendNotifications {
|
||||
getName () {return "FriendNotifications";}
|
||||
|
||||
getVersion () {return "1.3.4";}
|
||||
getVersion () {return "1.3.7";}
|
||||
|
||||
getAuthor () {return "DevilBro";}
|
||||
|
||||
|
@ -11,13 +11,7 @@ class FriendNotifications {
|
|||
|
||||
constructor () {
|
||||
this.changelog = {
|
||||
"fixed":[["Non Friends","Fixed issue where you are unable to add non friends to the observer list"]]
|
||||
};
|
||||
|
||||
this.patchedModules = {
|
||||
after: {
|
||||
"StandardSidebarView":"componentWillUnmount"
|
||||
}
|
||||
"fixed":[["Non Friends","Fixed issue where previously configured friends that are no longer in your friend list could not be configured via non-friend list"]]
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -186,6 +180,14 @@ class FriendNotifications {
|
|||
settingshtml += this.createHoverCard(user, friends[id], "friends");
|
||||
}
|
||||
}
|
||||
for (let id in friends) if (!friendIDs.includes(id)) {
|
||||
let user = BDFDB.LibraryModules.UserStore.getUser(id);
|
||||
if (user) {
|
||||
nonfriends[id] = Object.assign({}, friends[id]);
|
||||
delete friends[id];
|
||||
settingshtml += this.createHoverCard(user, friends[id] || (friends[id] = this.createDefaultConfig()), "friends");
|
||||
}
|
||||
}
|
||||
settingshtml += `</div>`;
|
||||
settingshtml += `</div><div class="${BDFDB.disCNS.divider + BDFDB.disCN.marginbottom4}"></div>`;
|
||||
settingshtml += `<div class="${BDFDB.disCNS.h2 + BDFDB.disCNS.cursorpointer + BDFDB.disCNS.margintop4 + BDFDB.disCN.marginbottom4} BDFDB-containertext"><span class="BDFDB-containerarrow closed"></span>Non-Friend-List</div><div class="BDFDB-collapsecontainer">`;
|
||||
|
@ -458,7 +460,7 @@ class FriendNotifications {
|
|||
}
|
||||
}
|
||||
|
||||
processStandardSidebarView (instance, wrapper, returnvalue) {
|
||||
onSettingsClosed () {
|
||||
if (this.SettingsUpdated) {
|
||||
delete this.SettingsUpdated;
|
||||
this.startInterval();
|
||||
|
|
Loading…
Reference in New Issue