MemberCount: Do not count offline group lol

This commit is contained in:
Vendicated 2023-05-06 01:06:48 +02:00
parent 0b2c3c834a
commit 2834bed518
No known key found for this signature in database
GPG Key ID: A1DC0CFB5615D905

@ -47,7 +47,7 @@ function MemberCount() {
const online = const online =
(groups.length === 1 && groups[0].id === "unknown") (groups.length === 1 && groups[0].id === "unknown")
? 0 ? 0
: groups.reduce((count, curr) => count + curr.count, 0); : groups.reduce((count, curr) => count + (curr.id === "offline" ? 0 : curr.count), 0);
return ( return (
<Flex id="vc-membercount" style={{ <Flex id="vc-membercount" style={{