msg.setId(pollData.getLong("msg_id"));
msg.setId2(pollData.getLong("msg_id2"));
long fromUin = pollData.getLong("send_uin");
long groupCode = pollData.getLong("group_code");
long groupID = pollData.getLong("info_seq"); // 真实群号码
QQGroup group = store.getGroupByCode(groupCode);
if (group.getGid() <= 0) {
group.setGid(groupID);
}
msg.parseContentList(pollData.getJSONArray("content").toString());
msg.setType(QQMsg.Type.GROUP_MSG);
msg.setGroup(group);
msg.setTo(getContext().getAccount());
msg.setDate(new Date(pollData.getLong("time") * 1000));
if (group != null) {
msg.setFrom(group.getMemberByUin(fromUin));
}
if (msg.getFrom() == null) {
QQGroupMember member = new QQGroupMember();
member.setUin(fromUin);
msg.setFrom(member);
if (group != null) {
group.getMembers().add(member);
}
}
return new QQNotifyEvent(QQNotifyEvent.Type.CHAT_MSG, msg);
}