stuff
This commit is contained in:
parent
25fd92198e
commit
5a7e237f49
|
@ -2,7 +2,7 @@
|
|||
* @name BDFDB
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.9.8
|
||||
* @version 1.9.9
|
||||
* @description Required Library for DevilBro's Plugins
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -19,7 +19,7 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "BDFDB",
|
||||
"author": "DevilBro",
|
||||
"version": "1.9.8",
|
||||
"version": "1.9.9",
|
||||
"description": "Required Library for DevilBro's Plugins"
|
||||
},
|
||||
"rawUrl": `https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js`
|
||||
|
@ -8285,7 +8285,7 @@ module.exports = (_ => {
|
|||
return e.methodArguments[0].id == InternalData.myId ? e.methodArguments[0].banner : e.callOriginalMethod();
|
||||
}});
|
||||
|
||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.BannerUtils, "getUserBannerURLForContext", {instead: e => {
|
||||
BDFDB.PatchUtils.patch(this, LibraryModules.BannerUtils, "getUserBannerURLForContext", {instead: e => {
|
||||
return e.methodArguments[0].user && e.methodArguments[0].user.id == InternalData.myId ? e.methodArguments[0].user.banner : e.callOriginalMethod();
|
||||
}});
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ module.exports = (_ => {
|
|||
MessageContent: "type",
|
||||
Reaction: "render",
|
||||
ReactorsComponent: "render",
|
||||
UserMention: "UserMention",
|
||||
UserMention: "default",
|
||||
RichUserMention: "UserMention",
|
||||
ChannelReply: "default",
|
||||
MemberListItem: "render",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @name RemoveBlockedUsers
|
||||
* @author DevilBro
|
||||
* @authorId 278543574059057154
|
||||
* @version 1.3.4
|
||||
* @version 1.3.5
|
||||
* @description Removes blocked Messages/Users
|
||||
* @invite Jx3TjNS
|
||||
* @donate https://www.paypal.me/MircoWittrien
|
||||
|
@ -17,8 +17,13 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "RemoveBlockedUsers",
|
||||
"author": "DevilBro",
|
||||
"version": "1.3.4",
|
||||
"version": "1.3.5",
|
||||
"description": "Removes blocked Messages/Users"
|
||||
},
|
||||
"changeLog": {
|
||||
"fixed": {
|
||||
"Member List Scroll Issue": "Fixed Issue where the Member list would stop loading Users after a certain scroll length"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -359,8 +364,8 @@ module.exports = (_ => {
|
|||
let newRows = [], newGroups = [];
|
||||
for (let i in e.instance.props.rows) {
|
||||
let row = e.instance.props.rows[i];
|
||||
if (row.type != "MEMBER") newRows.push(row);
|
||||
else if (!row.user || !BDFDB.LibraryModules.RelationshipStore.isBlocked(row.user.id)) newRows.push(row);
|
||||
if (!row || row.type != "MEMBER") newRows[i] = row;
|
||||
else if (!row.user || !BDFDB.LibraryModules.RelationshipStore.isBlocked(row.user.id)) newRows[i] = row;
|
||||
else {
|
||||
let found = false, rowIndex = i - 1;
|
||||
while (!found && rowIndex > -1) {
|
||||
|
@ -381,8 +386,11 @@ module.exports = (_ => {
|
|||
newGroups[i] = Object.assign({}, e.instance.props.groups[i], {index: indexSum});
|
||||
if (e.instance.props.groups[i].count > 0) indexSum += (e.instance.props.groups[i].count + 1);
|
||||
}
|
||||
if (e.instance.props.rows.length > 2000 && !window.a) window.a = e.instance.props.rows;
|
||||
|
||||
for (let i in newRows) if (newRows[i] && newRows[i].type == "GROUP" && newRows[i].count <= 0) newRows[i] = null;
|
||||
e.instance.props.groups = newGroups.filter(g => g && g.count > 0);
|
||||
e.instance.props.rows = newRows.filter(r => r && (r.type != "GROUP" || r.count > 0));
|
||||
e.instance.props.rows = newRows;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue