Update BetterFriendList.plugin.js

This commit is contained in:
Mirco Wittrien 2020-10-25 18:15:18 +01:00
parent 01b511147c
commit 6ca75e996d
1 changed files with 7 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module.exports = (_ => {
"info": {
"name": "BetterFriendList",
"author": "DevilBro",
"version": "1.2.9",
"version": "1.3.0",
"description": "Add extra controls to the friends page, like sort by name/status, search and all/request/blocked amount"
}
};
@ -74,10 +74,12 @@ module.exports = (_ => {
this.patchedModules = {
before: {
PeopleListSectionedLazy: "default",
PeopleListSectionedNonLazy: "default"
},
after: {
TabBar: "render",
PeopleListSectionedLazy: "default",
PeopleListSectionedNonLazy: "default",
FriendRow: "render",
PendingRow: "default",
BlockedRow: "render",
@ -267,6 +269,10 @@ module.exports = (_ => {
};
}
processPeopleListSectionedNonLazy (e) {
this.processPeopleListSectionedLazy(e);
}
processFriendRow (e) {
e.returnvalue.props.mutualGuilds = e.instance.props.mutualGuilds;
}