mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 20:49:14 +00:00
Fixes GroupNotification.getChat() returning client's chat. (#699)
* 🥅 getChat returns expected, instead of the client's chat. * 🥅 Fixed .reply method too * revert + fix
This commit is contained in:
@@ -43,7 +43,7 @@ class GroupNotification extends Base {
|
|||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.chatId = typeof (data.from) === 'object' ? data.from._serialized : data.from;
|
this.chatId = typeof (data.to) === 'object' ? data.to._serialized : data.to;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ContactId for the user that produced the GroupNotification.
|
* ContactId for the user that produced the GroupNotification.
|
||||||
|
|||||||
Reference in New Issue
Block a user