MemberCount: Do not count offline group lol
This commit is contained in:
parent
0b2c3c834a
commit
2834bed518
1 changed files with 1 additions and 1 deletions
|
@ -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={{
|
||||||
|
|
Loading…
Reference in a new issue