From cd566f28b9957d58dbd470470f6e2fe018808db3 Mon Sep 17 00:00:00 2001 From: Jorge Rocha Gualtieri Date: Fri, 14 Jun 2024 11:24:09 -0300 Subject: [PATCH] fix reactions on pvt chats (#3104) --- src/Client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.js b/src/Client.js index e441ba5bd5..8bf4e59c01 100644 --- a/src/Client.js +++ b/src/Client.js @@ -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 }; }));