sendConfirmRingMsgToCallee method

void sendConfirmRingMsgToCallee(
  1. String userId,
  2. String callId,
  3. bool isValid,
  4. String calleeDevId,
)

Implementation

void sendConfirmRingMsgToCallee(
    String userId, String callId, bool isValid, String calleeDevId) {
  ChatMessage msg = ChatMessage.createCmdSendMessage(
    targetId: userId,
    action: "rtcCall",
    deliverOnlineOnly: true,
  );
  Map attributes = {
    kMsgType: kMsgTypeValue,
    kAction: kConfirmRingAction,
    kCallId: callId,
    kCallerDevId: model.curDevId,
    kCallStatus: isValid,
    kTs: ts,
    kCalleeDevId: calleeDevId,
  };
  msg.attributes = attributes;

  ChatClient.getInstance.chatManager.sendMessage(msg);
  chatLog("sendConfirmRingMsgToCallee", msg);
}