From a7ba511278befdece11924c77cf9100c16fc7751 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Fri, 14 Jan 2022 13:52:33 -0800 Subject: [PATCH] Fix remoteUserIds --- src/room/GroupCallInspector.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/room/GroupCallInspector.jsx b/src/room/GroupCallInspector.jsx index 1cb1b29..32a7fe3 100644 --- a/src/room/GroupCallInspector.jsx +++ b/src/room/GroupCallInspector.jsx @@ -165,6 +165,11 @@ function reducer(state, action) { if (event) { const fromId = event.getStateKey(); + remoteUserIds = + fromId === state.localUserId || eventsByUserId.has(fromId) + ? state.remoteUserIds + : [...state.remoteUserIds, fromId]; + eventsByUserId = new Map(state.eventsByUserId); if (event.getStateKey() === state.localUserId) { @@ -194,11 +199,6 @@ function reducer(state, action) { }, ]); } - - remoteUserIds = - fromId === state.localUserId || eventsByUserId.has(fromId) - ? state.remoteUserIds - : [...state.remoteUserIds, fromId]; } return {