Update SDK to 1.1.5, New add clear c2c message android group message

This commit is contained in:
hrxiang
2021-11-17 11:30:12 +08:00
parent a97048ea9d
commit b5f80cc052
47 changed files with 276 additions and 453 deletions

View File

@@ -48,11 +48,14 @@ class ConversationInfo {
unreadCount = json['unreadCount'];
// latestMsg = json['latestMsg'];
// if (null != json['latestMsg']) {
if (json['latestMsg'] is String) {
latestMsg = Message.fromJson(jsonDecode(json['latestMsg']));
} else if (json['latestMsg'] is Map) {
latestMsg = Message.fromJson(json['latestMsg']);
}
try {
if (json['latestMsg'] is String) {
latestMsg = Message.fromJson(jsonDecode(json['latestMsg']));
} else if (json['latestMsg'] is Map) {
latestMsg = Message.fromJson(json['latestMsg']);
}
} catch (e) {}
// }
latestMsgSendTime = json['latestMsgSendTime'];