diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index fb9c1d46..cf45c614 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1840,7 +1840,7 @@ export class BaileysStartupService extends ChannelStartupService { throw new BadRequestException(isWA); } - const sender = isWA.jid; + const sender = isWA.jid.toLowerCase(); this.logger.verbose(`Sending message to ${sender}`); @@ -3290,10 +3290,10 @@ export class BaileysStartupService extends ChannelStartupService { } } - private async getGroupMetadataCache(groupJid: string) { + private getGroupMetadataCache = async (groupJid: string) => { if (!isJidGroup(groupJid)) return null; - const cacheConf = configService.get('CACHE'); + const cacheConf = this.configService.get('CACHE'); if ((cacheConf?.REDIS?.ENABLED && cacheConf?.REDIS?.URI !== '') || cacheConf?.LOCAL?.ENABLED) { if (await groupMetadataCache?.has(groupJid)) {