sendAlertMsgToCaller method
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);
}