From 3019a0434db5106cf39bb18b6e65bf165a326143 Mon Sep 17 00:00:00 2001 From: dayu <827934643@qq.com> Date: Tue, 20 Aug 2024 21:13:55 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E8=BA=AB?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/puppet-xp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/puppet-xp.ts b/src/puppet-xp.ts index bb8b1e6..88c1d97 100644 --- a/src/puppet-xp.ts +++ b/src/puppet-xp.ts @@ -380,8 +380,8 @@ class PuppetXp extends PUPPET.Puppet { } // revert talkerId and toId according to isMyMsg - if (args[5] === 1) { - toId = talkerId + if (!talkerId) { + toId = this.selfInfo.id talkerId = this.selfInfo.id } From 595187a2450a93828a24f5eece04d4baeb32155f Mon Sep 17 00:00:00 2001 From: dayu <827934643@qq.com> Date: Thu, 22 Aug 2024 07:26:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E8=BA=AB?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/puppet-xp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/puppet-xp.ts b/src/puppet-xp.ts index 88c1d97..f2ccd4e 100644 --- a/src/puppet-xp.ts +++ b/src/puppet-xp.ts @@ -495,7 +495,7 @@ class PuppetXp extends PUPPET.Puppet { this.emit('room-join', { inviteeIdList: inviteeList, inviterId: inviter.id, roomId }) } - } else if (type === PUPPET.types.Message.Transfer) { /* empty */ } else { + } else { this.messageStore[payload.id] = payload if (this.isReady) { this.emit('message', { messageId: payload.id })