fix: fixed send messages in groups

This commit is contained in:
Davidson Gomes 2024-08-23 15:36:59 -03:00
parent 0fca8c0746
commit e809f38865
3 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@
* Fixed dify agent integration
* Update Baileys Version
* Fixed proxy config in manager
* Fixed send messages in groups
### Break Changes

View File

@ -331,6 +331,7 @@ export class InstanceController {
instance.client?.end(new Error('restart'));
return await this.connectToWhatsapp({ instanceName });
} else if (state == 'connecting') {
instance.client?.ws?.close();
instance.client?.end(new Error('restart'));
return await this.connectToWhatsapp({ instanceName });
}

View File

@ -3203,7 +3203,7 @@ export class BaileysStartupService extends ChannelStartupService {
private async getGroupMetadataCache(groupJid: string) {
if (!isJidGroup(groupJid)) return null;
const cacheConf = this.configService.get<CacheConf>('CACHE');
const cacheConf = configService.get<CacheConf>('CACHE');
if ((cacheConf?.REDIS?.ENABLED && cacheConf?.REDIS?.URI !== '') || cacheConf?.LOCAL?.ENABLED) {
if (await groupMetadataCache.has(groupJid)) {