Update whatsapp.service.ts

This commit is contained in:
CodePhix 2023-07-25 19:59:42 -03:00 committed by GitHub
parent 6b926dc697
commit dd0c1e20a7
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;
} }