sendAlertMsgToCaller method

void sendAlertMsgToCaller(
  1. String callerId,
  2. String callId,
  3. String devId
)

Implementation

void sendAlertMsgToCaller(
    String callerId, String callId, String devId) async {
  ChatMessage msg = ChatMessage.createCmdSendMessage(
    targetId: callerId,
    action: "rtcCall",
    deliverOnlineOnly: true,
  );
  Map attributes = {
    kMsgType: kMsgTypeValue,
    kAction: kAlertAction,
    kCallId: callId,
    kCalleeDevId: model.curDevId,
    kCallerDevId: devId,
    kTs: ts,
  };
  msg.attributes = attributes;
  ChatClient.getInstance.chatManager.sendMessage(msg);
  chatLog("sendAlertMsgToCaller", msg);
}