@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
|
@@ -877,8 +877,8 @@ class ClientChat {
|
|
|
877
877
|
return rs
|
|
878
878
|
}, {}))
|
|
879
879
|
// 删除changeType为3移除的好友,例如转移的场景
|
|
880
|
-
if (data.
|
|
881
|
-
data.
|
|
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.
|
|
944
|
-
data.
|
|
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
|
}
|