From 2b85d85e9511567018cd6b0532894bbfbecd4fcf Mon Sep 17 00:00:00 2001 From: Timo K Date: Thu, 6 Mar 2025 15:40:47 +0100 Subject: [PATCH] show user count based on meberships not users. Signed-off-by: Timo K --- src/room/GroupCallView.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/room/GroupCallView.tsx b/src/room/GroupCallView.tsx index ed8f77ae..0f82eae9 100644 --- a/src/room/GroupCallView.tsx +++ b/src/room/GroupCallView.tsx @@ -77,6 +77,7 @@ import { useSetting, } from "../settings/settings"; import { useTypedEventEmitter } from "../useEvents"; +import { CallMembership } from "matrix-js-sdk/src/matrixrtc/CallMembership.ts"; declare global { interface Window { @@ -180,7 +181,9 @@ export const GroupCallView: FC = ({ // Count each member only once, regardless of how many devices they use const participantCount = useMemo( - () => new Set(memberships.map((m) => m.sender!)).size, + // TODO REVERT THIS!!! + // It is debatable if the device count is better than the user count but this debate and change should be done in a separate PR. + () => new Set(memberships).size, [memberships], );