Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.9.10.27 #241

Open
wants to merge 2 commits into
base: 3.9.10.27
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/puppet-xp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ class PuppetXp extends PUPPET.Puppet {
}

// revert talkerId and toId according to isMyMsg
if (args[5] === 1) {
toId = talkerId
if (!talkerId) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition change from args[5] === 1 to !talkerId might alter the logic significantly. Ensure this change aligns with the intended behavior.

toId = this.selfInfo.id
talkerId = this.selfInfo.id
}

Expand Down Expand Up @@ -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 })
Expand Down