answerCall method

Future<void> answerCall(
  1. String callId
)

Implementation

Future<void> answerCall(String callId) async {
  if (model.curCall?.callId == callId) {
    if (model.curCall!.isCaller == true) {
      return;
    }
    onAnswer();
    sendAnswerMsg(
      model.curCall!.remoteUserAccount!,
      callId,
      kAcceptResult,
      model.curCall!.remoteCallDevId!,
    );
  }
}