Skip to content

Commit

Permalink
Merge pull request wechaty#162 from choogoo/main
Browse files Browse the repository at this point in the history
v1.12.7
  • Loading branch information
atorber authored Dec 4, 2022
2 parents cc63e1b + bbc51c7 commit 89d7b2f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Puppet|xp👍|
### main v1.12.0 (November 22, 2022)

1. This version start to support WeChat v3.6.0.18,need to update WeChat on your pc to 3.6.0.18
2. [WeChatSetup-v3.6.0.18.exe](https://github.com/tom-snow/wechat-windows-versions/releases/tag/v3.6.0.18)
2. [WeChatSetup-v3.6.0.18.exe](https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.6.0.18/WeChatSetup-3.6.0.18.exe)

### v1.11.14

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wechaty-puppet-xp",
"version": "1.12.6",
"version": "1.12.7",
"description": "Puppet XP for Wechaty",
"type": "module",
"exports": {
Expand Down
11 changes: 9 additions & 2 deletions src/puppet-xp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,15 @@ class PuppetXp extends PUPPET.Puppet {
}
// console.info('payloadType----------', PUPPET.types.Message[type])
// console.info('payload----------', payload)

if (talkerId && (!this.contactStore[talkerId] || !this.contactStore[talkerId]?.name)) {
void this.loadContactList()
}

if (roomId && (!this.roomStore[roomId] || !this.roomStore[roomId]?.topic)) {
void this.loadRoomList()
}

try {
if (code === 10000) {
// 你邀请"瓦力"加入了群聊
Expand Down Expand Up @@ -428,8 +437,6 @@ class PuppetXp extends PUPPET.Puppet {

}
if (text.indexOf('加入了群聊') !== -1) {
void this.loadRoomList()
void this.loadContactList()
const inviteeList = []
let inviter = this.selfInfo
const arrInfo = text.split(/邀请|加入了群聊/)
Expand Down

0 comments on commit 89d7b2f

Please sign in to comment.