fix: properly set chatId
This was causing errors when using the .reply() function
This commit is contained in:
parent
67435b2244
commit
7acbd3d800
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class GroupNotification extends Base {
|
||||||
*
|
*
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.chatId = typeof (data.to) === 'object' ? data.to._serialized : data.to;
|
this.chatId = typeof (data.from) === 'object' ? data.from._serialized : data.from;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ContactId for the user that produced the GroupNotification.
|
* ContactId for the user that produced the GroupNotification.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue