Update RemoveBlockedUsers.plugin.js

This commit is contained in:
Mirco Wittrien 2021-08-09 17:01:11 +02:00
parent d5d2fcfac4
commit 49931a2313
1 changed files with 3 additions and 8 deletions

View File

@ -2,7 +2,7 @@
* @name RemoveBlockedUsers
* @author DevilBro
* @authorId 278543574059057154
* @version 1.3.2
* @version 1.3.3
* @description Removes blocked Messages/Users
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -17,13 +17,8 @@ module.exports = (_ => {
"info": {
"name": "RemoveBlockedUsers",
"author": "DevilBro",
"version": "1.3.2",
"version": "1.3.3",
"description": "Removes blocked Messages/Users"
},
"changeLog": {
"fixed": {
"Voice Channels": "."
}
}
};
@ -163,7 +158,7 @@ module.exports = (_ => {
}
}});
false && BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.UnreadGuildUtils, "hasUnread", {after: e => {
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.UnreadGuildUtils, "hasUnread", {after: e => {
if (e.returnValue && this.settings.notifcations.messages) {
return BDFDB.LibraryModules.GuildChannelStore.getChannels(e.methodArguments[0]).SELECTABLE.map(n => n.channel && n.channel.id).filter(n => n && n != "null").some(BDFDB.LibraryModules.UnreadChannelUtils.hasUnread);
}