mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
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
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user