Skip to content

Commit

Permalink
fix reactions on pvt chats (#3104)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrocha authored Jun 14, 2024
1 parent efc2bd0 commit cd566f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,8 @@ class Client extends EventEmitter {
const msgKey = reaction.id;
const parentMsgKey = reaction.reactionParentKey;
const timestamp = reaction.reactionTimestamp / 1000;
const senderUserJid = reaction.author._serialized;
const sender = reaction.author ?? reaction.from;
const senderUserJid = sender._serialized;

return {...reaction, msgKey, parentMsgKey, senderUserJid, timestamp };
}));
Expand Down

0 comments on commit cd566f2

Please sign in to comment.