From b616cf5aca487ec80d068beedbe3e4d14f0eafca Mon Sep 17 00:00:00 2001 From: Vinicius Silva <79378773+viniciusgdr@users.noreply.github.com> Date: Wed, 10 Nov 2021 18:41:08 +0000 Subject: [PATCH] Fixed: Update for new Chat Groups (#804) * Update for new Chat Groups * Update for new Chat Groups WhatsApp changed the ID form of new groups * Fixed: Update for new Chat Groups --- src/WAConnection/4.Events.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/WAConnection/4.Events.ts b/src/WAConnection/4.Events.ts index 8e2033a..03ec04e 100644 --- a/src/WAConnection/4.Events.ts +++ b/src/WAConnection/4.Events.ts @@ -494,10 +494,6 @@ export class WAConnection extends Base { /** Adds the given message to the appropriate chat, if the chat doesn't exist, it is created */ protected async chatAddMessageAppropriate (message: WAMessage) { const jid = whatsappID(message.key.remoteJid) - if(isGroupID(jid) && !jid.includes('-')) { - this.logger.warn({ gid: jid }, 'recieved odd group ID') - return - } const chat = this.chats.get(jid) || await this.chatAdd (jid) this.chatAddMessage (message, chat) }