|
|
|
@ -272,6 +272,10 @@ export class WebhookServer {
|
|
|
|
|
|
|
|
|
|
|
|
// Check/ensure group exists (allow DMs always)
|
|
|
|
// Check/ensure group exists (allow DMs always)
|
|
|
|
if (isGroupId(data.key.remoteJid) && !GroupSyncService.isGroupActive(data.key.remoteJid)) {
|
|
|
|
if (isGroupId(data.key.remoteJid) && !GroupSyncService.isGroupActive(data.key.remoteJid)) {
|
|
|
|
|
|
|
|
// En tests, mantener comportamiento anterior: ignorar mensajes de grupos inactivos
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'test') {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (process.env.NODE_ENV !== 'test') {
|
|
|
|
if (process.env.NODE_ENV !== 'test') {
|
|
|
|
console.log('ℹ️ Group not active in cache — ensuring group and triggering quick members sync');
|
|
|
|
console.log('ℹ️ Group not active in cache — ensuring group and triggering quick members sync');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|