Skip to content

Commit

Permalink
fix: 增加解析push联系人事件中的群成员列表
Browse files Browse the repository at this point in the history
  • Loading branch information
binsee committed Apr 12, 2018
1 parent 02a7742 commit 8547c97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2402,6 +2402,13 @@ function onWsMsg(msg) {
// 当msg_type为5时,即表示推送的信息类型要用sub_type进行判断
// 另外增加一个属性来存储好了
item.mType = item.msgType === 5 ? item.subType : item.msgType
// 解析群成员列表
if (item.member) {
try {
item.member = JSON.parse(item.member) || []
} catch (e) {
}
}
this.emit('push', item)
})
break
Expand Down

0 comments on commit 8547c97

Please sign in to comment.