removeCall method

Future<void> removeCall(
  1. CallSession call,
  2. String hangupReason
)

Removes a peer call from group calls.

Implementation

Future<void> removeCall(CallSession call, String hangupReason) async {
  await disposeCall(call, hangupReason);

  calls.removeWhere((element) => call.callId == element.callId);

  onGroupCallEvent.add(GroupCallEvent.CallsChanged);
}