hasActiveGroupCall method

bool hasActiveGroupCall(
  1. VoIP voip, {
  2. bool ignoreDirectChats = true,
})

use voipPlugin.roomHasTrackedActiveCalls instead of this for UI

Implementation

bool hasActiveGroupCall(VoIP voip, {bool ignoreDirectChats = true}) {
  if (ignoreDirectChats && isDirectChat) return false;
  if (activeGroupCallIds(voip).isNotEmpty) {
    return true;
  }
  return false;
}