@aochuang/client-sdk 1.0.313 → 1.0.314

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/client-sdk",
3
- "version": "1.0.313",
3
+ "version": "1.0.314",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -877,8 +877,8 @@ class ClientChat {
877
877
  return rs
878
878
  }, {}))
879
879
  // 删除changeType为3移除的好友,例如转移的场景
880
- if (data.wechatFriendIds && data.wechatFriendIds.length) {
881
- data.wechatFriendIds.forEach(friend => {
880
+ if (data.friends && data.friends.length) {
881
+ data.friends.forEach(friend => {
882
882
  if (friend.changeType === 3) {
883
883
  this.contacts.removeFriend(friend.wechatFriendId)
884
884
  }
@@ -939,9 +939,9 @@ class ClientChat {
939
939
  rs[v.wechatAccountId] = true
940
940
  return rs
941
941
  }, {}))
942
- // 删除changeType为3移除的好友,例如转移的场景
943
- if (data.wechatChatroomIds && data.wechatChatroomIds.length) {
944
- data.wechatChatroomIds.forEach(room => {
942
+ // 删除changeType为3移除的群聊,例如转移的场景
943
+ if (data.chatrooms && data.chatrooms.length) {
944
+ data.chatrooms.forEach(room => {
945
945
  if (room.changeType === 3) {
946
946
  this.contacts.removeRoom(room.wechatChatroomId)
947
947
  }