openAddMember method

Future<void> openAddMember(
  1. BuildContext context
)

Returns a result of the showDialog building a ParticipantView.

Implementation

Future<void> openAddMember(BuildContext context) async {
  if (isMonolog) {
    return;
  }

  if (isMobile) {
    panelController.close().then((_) {
      isPanelOpen.value = false;
      keepUi(false);
    });
  }

  await ParticipantView.show(
    context,
    call: _currentCall,
    duration: duration,
    initial:
        isGroup
            ? ParticipantsFlowStage.participants
            : ParticipantsFlowStage.search,
  );
}