From f32f3c71ba3fc5a83d0a47c5d2c527a2f86def0a Mon Sep 17 00:00:00 2001 From: Pedro Lopez Date: Mon, 28 Mar 2022 23:44:04 -0400 Subject: [PATCH] fix: get groupnotification chat close #1329 --- 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..6552116 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.id.remote) === 'object' ? data.id.remote._serialized : data.id.remote; /** * ContactId for the user that produced the GroupNotification.