From e8ec50488e6bfd906a83b0642c36cc59884af035 Mon Sep 17 00:00:00 2001 From: Adhiraj Date: Sun, 12 Jul 2020 14:03:17 +0530 Subject: [PATCH] Update Base.ts --- src/WAClient/Base.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/WAClient/Base.ts b/src/WAClient/Base.ts index 067d002..7835ada 100644 --- a/src/WAClient/Base.ts +++ b/src/WAClient/Base.ts @@ -210,7 +210,6 @@ export default class WhatsAppWebBase extends WAConnection { /** Get the metadata (works after you've left the group also) */ groupCreatorAndParticipants = async (jid: string) => { const response = await this.queryExpecting200(['query', {type: 'group', jid: jid, epoch: '5'}, null], [WAMetric.group, WAFlag.ignore]) - if (!response[2] || !response[2][1]) throw new Error ('Data missing in ' + JSON.stringify(response)) const json = response[2] return { id: jid,