We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9899f40 commit 0447c5aCopy full SHA for 0447c5a
1 file changed
src/Client.js
@@ -700,10 +700,8 @@ class Client extends EventEmitter {
700
/** @type {GroupNotification} object does not provide enough information about this event, so a @type {Message} object is used. */
701
const message = new Message(this, msg);
702
703
- const newId = isParticipant ? msg.recipients[0] : msg.to;
704
- const oldId = isParticipant
705
- ? msg.author
706
- : msg.templateParams.find((id) => id !== newId);
+ const newId = isParticipant ? msg.recipients[0] : msg._data.templateParams[1];
+ const oldId = isParticipant ? msg.author : msg._data.templateParams[0];
707
708
/**
709
* Emitted when a contact or a group participant changes their phone number.
0 commit comments