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, VoIP voip) {
var participantCount = 0;
// userid:membership
final memberships = getCallMembershipsFromRoom(voip);
memberships.forEach((key, value) {
for (final membership in value) {
if (membership.callId == groupCallId && !membership.isExpired) {
participantCount++;
}
}
});
return participantCount;
}