Update BetterFriendList.plugin.js

This commit is contained in:
Mirco Wittrien 2021-07-01 22:53:09 +02:00
parent 4ceb8046eb
commit 5e680db14b
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ module.exports = (_ => {
isHiddenSelected = false;
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.StatusMetaUtils, "getOnlineFriendCount", {after: e => {
if (this.settings.general.addHiddenCategory) for (let id of hiddenFriends) {
if (this.settings.general.addHiddenCategory) for (let id of hiddenFriends) if (BDFDB.LibraryModules.RelationshipStore.isFriend(id)) {
const status = BDFDB.UserUtils.getStatus(id);
if (status && status != BDFDB.DiscordConstants.StatusTypes.OFFLINE && e.returnValue > 0) e.returnValue--;
}