stop method

void stop()

Implementation

void stop() {
  if (!_isRunning.value) return;
  var selfId = CallStore.shared.state.selfInfo.value.id;
  var activeCall = CallStore.shared.state.activeCall.value;
  var isMulti = activeCall.chatGroupId.isNotEmpty || activeCall.inviteeIds.length > 1;
  if (selfId == activeCall.inviterId && !isMulti) {
    AITranscriberStore.shared.stopRealtimeTranscriber();
  }
  _isRunning.value = false;
}