sendCancelCallMsgToCallee method

void sendCancelCallMsgToCallee(
  1. String userId,
  2. String callId
)

Implementation

void sendCancelCallMsgToCallee(String userId, String callId) {
  final msg =
      ChatMessage.createCmdSendMessage(targetId: userId, action: 'rtcCall');
  msg.attributes = {
    kMsgType: kMsgTypeValue,
    kAction: kCancelCallAction,
    kCallId: callId,
    kCallerDevId: model.curDevId,
    kTs: ts,
  };

  ChatClient.getInstance.chatManager.sendMessage(msg);
}