Fix: Group video calls (#2319)

This commit is contained in:
Alexander Zinchuk 2023-01-22 18:12:15 +01:00
parent 4eb3db4626
commit 661b2b62e0

View File

@ -17,7 +17,7 @@ export function updateGroupCall(
...global.groupCalls.byId[groupCallId]?.participants,
...groupCallUpdate.participants,
});
const filtered = unfiltered.filter(({ isLeft }) => isLeft);
const filtered = unfiltered.filter(({ isLeft }) => !isLeft);
const participants = filtered.reduce((acc: Record<string, GroupCallParticipant>, el) => {
acc[el.id] = el;
return acc;