From 7acbd3d8002e675e35aaf233ba78c41004bf68c7 Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Sun, 5 Apr 2020 22:57:59 -0400 Subject: [PATCH] fix: properly set chatId This was causing errors when using the .reply() function --- src/structures/GroupNotification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/GroupNotification.js b/src/structures/GroupNotification.js index d022b70..d96dc03 100644 --- a/src/structures/GroupNotification.js +++ b/src/structures/GroupNotification.js @@ -43,7 +43,7 @@ class GroupNotification extends Base { * * @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.