From 5e680db14bc9e02e8a7e0d64dc2b6bda681187cc Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 1 Jul 2021 22:53:09 +0200 Subject: [PATCH] Update BetterFriendList.plugin.js --- Plugins/BetterFriendList/BetterFriendList.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/BetterFriendList/BetterFriendList.plugin.js b/Plugins/BetterFriendList/BetterFriendList.plugin.js index cb3bc9cbb7..6501f8d514 100644 --- a/Plugins/BetterFriendList/BetterFriendList.plugin.js +++ b/Plugins/BetterFriendList/BetterFriendList.plugin.js @@ -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--; }