From 95facee8856847da50b600c06177b6bec3b14bdb Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Sat, 30 Oct 2021 06:00:10 +0300 Subject: [PATCH] Fixes GroupNotification.getChat() returning client's chat. (#699) * :goal_net: getChat returns expected, instead of the client's chat. * :goal_net: Fixed .reply method too * revert + fix --- 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 d96dc03..d022b70 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.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.