groupCallParticipantCount method
returns the user count (not sessions, yet) for the group call with id: groupCallId
.
returns 0 if group call not found
Implementation
int groupCallParticipantCount(String groupCallId) {
int participantCount = 0;
// userid:membership
final memberships = getCallMembershipsFromRoom();
memberships.forEach((key, value) {
for (final membership in value) {
if (membership.callId == groupCallId && !membership.isExpired) {
participantCount++;
}
}
});
return participantCount;
}