Skip to content

Commit

Permalink
fix: nonLocal join/left values
Browse files Browse the repository at this point in the history
  • Loading branch information
td-famedly committed May 22, 2024
1 parent 6ce072f commit 25437f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/src/voip/group_call_session.dart
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ class GroupCallSession {

if (anyJoined.isNotEmpty || anyLeft.isNotEmpty) {
if (anyJoined.isNotEmpty) {
final nonLocalAnyJoined = anyJoined..remove(localParticipant);
final nonLocalAnyJoined = Set<CallParticipant>.from(anyJoined)
..remove(localParticipant);
if (nonLocalAnyJoined.isNotEmpty && state == GroupCallState.entered) {
Logs().v(
'nonLocalAnyJoined: ${nonLocalAnyJoined.map((e) => e.id).toString()} roomId: ${room.id} groupCallId: $groupCallId');
Expand All @@ -255,7 +256,8 @@ class GroupCallSession {
_participants.addAll(anyJoined);
}
if (anyLeft.isNotEmpty) {
final nonLocalAnyLeft = anyLeft..remove(localParticipant);
final nonLocalAnyLeft = Set<CallParticipant>.from(anyLeft)
..remove(localParticipant);
if (nonLocalAnyLeft.isNotEmpty && state == GroupCallState.entered) {
Logs().v(
'nonLocalAnyLeft: ${nonLocalAnyLeft.map((e) => e.id).toString()} roomId: ${room.id} groupCallId: $groupCallId');
Expand Down

0 comments on commit 25437f8

Please sign in to comment.