Merge pull request #30 from codephix/patch-1

Update whatsapp.service.ts
This commit is contained in:
Davidson Gomes 2023-07-26 09:36:01 -03:00 committed by GitHub
commit dcb51702e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1277,7 +1277,7 @@ export class WAStartupService {
5: 'PLAYED', 5: 'PLAYED',
}; };
for await (const { key, update } of args) { for await (const { key, update } of args) {
if (settings.groups_ignore && key.remoteJid.includes('@g.us')) { if (settings?.groups_ignore && key.remoteJid.includes('@g.us')) {
this.logger.verbose('group ignored'); this.logger.verbose('group ignored');
return; return;
} }