chatFriend.setFromAvatar(fromAvatar);
chatFriend.setFromName(fromName);
chatFriend.setContent(content);
chatFriend.setContentType(contentType);
chatFriend.setToId(toId);
<BUG>chatFriend.setTime(time);
saveChatFriendData(chatFriend);</BUG>
} else {
ChatGroup chatGroup = new ChatGroup();
chatGroup.setFromId(fromId);

chatFriend.setFromAvatar(fromAvatar);
chatFriend.setFromName(fromName);
chatFriend.setContent(content);
chatFriend.setContentType(contentType);
chatFriend.setToId(toId);
chatFriend.setTime(time);
if ("audio".equals(contentType)) {
chatFriend.setAudioLength(jsonObject.getString("audioLength"));
}
saveChatFriendData(chatFriend);
} else {
ChatGroup chatGroup = new ChatGroup();
chatGroup.setFromId(fromId);
