From 2834bed518a1fc1c384a93d599cc1b03555177c7 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 6 May 2023 01:06:48 +0200 Subject: [PATCH] MemberCount: Do not count offline group lol --- src/plugins/memberCount.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/memberCount.tsx b/src/plugins/memberCount.tsx index a18cf6e1..78c10de1 100644 --- a/src/plugins/memberCount.tsx +++ b/src/plugins/memberCount.tsx @@ -47,7 +47,7 @@ function MemberCount() { const online = (groups.length === 1 && groups[0].id === "unknown") ? 0 - : groups.reduce((count, curr) => count + curr.count, 0); + : groups.reduce((count, curr) => count + (curr.id === "offline" ? 0 : curr.count), 0); return (