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