Update SDK to 1.1.5, New add clear c2c message android group message
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user