getEndUserJid method
Implementation
String getEndUserJid(CallLogData callLog) {
if (callLog.callMode == CallMode.groupCall) {
if (callLog.groupId.checkNull().isEmpty) {
return "";
} else {
return callLog.groupId!;
}
} else {
if (callLog.callState == 0 || callLog.callState == 2) {
return callLog.fromUser!;
} else {
return callLog.toUser!;
}
}
}