@@ -668,7 +668,7 @@ export class BaileysStartupService extends ChannelStartupService {
668
668
shouldSyncHistoryMessage : ( msg : proto . Message . IHistorySyncNotification ) => {
669
669
return this . historySyncNotification ( msg ) ;
670
670
} ,
671
- cachedGroupMetadata : this . getGroupMetadataCache ,
671
+ // cachedGroupMetadata: this.getGroupMetadataCache,
672
672
userDevicesCache : this . userDevicesCache ,
673
673
transactionOpts : { maxCommitRetries : 10 , delayBetweenTriesMs : 3000 } ,
674
674
patchMessageBeforeSending ( message ) {
@@ -1562,11 +1562,11 @@ export class BaileysStartupService extends ChannelStartupService {
1562
1562
'groups.update' : ( groupMetadataUpdate : Partial < GroupMetadata > [ ] ) => {
1563
1563
this . sendDataWebhook ( Events . GROUPS_UPDATE , groupMetadataUpdate ) ;
1564
1564
1565
- groupMetadataUpdate . forEach ( ( group ) => {
1566
- if ( isJidGroup ( group . id ) ) {
1567
- this . updateGroupMetadataCache ( group . id ) ;
1568
- }
1569
- } ) ;
1565
+ // groupMetadataUpdate.forEach((group) => {
1566
+ // if (isJidGroup(group.id)) {
1567
+ // this.updateGroupMetadataCache(group.id);
1568
+ // }
1569
+ // });
1570
1570
} ,
1571
1571
1572
1572
'group-participants.update' : ( participantsUpdate : {
@@ -1576,7 +1576,7 @@ export class BaileysStartupService extends ChannelStartupService {
1576
1576
} ) => {
1577
1577
this . sendDataWebhook ( Events . GROUP_PARTICIPANTS_UPDATE , participantsUpdate ) ;
1578
1578
1579
- this . updateGroupMetadataCache ( participantsUpdate . id ) ;
1579
+ // this.updateGroupMetadataCache(participantsUpdate.id);
1580
1580
} ,
1581
1581
} ;
1582
1582
@@ -2160,9 +2160,10 @@ export class BaileysStartupService extends ChannelStartupService {
2160
2160
if ( isJidGroup ( sender ) ) {
2161
2161
let group ;
2162
2162
try {
2163
- const cache = this . configService . get < CacheConf > ( 'CACHE' ) ;
2164
- if ( ! cache . REDIS . ENABLED && ! cache . LOCAL . ENABLED ) group = await this . findGroup ( { groupJid : sender } , 'inner' ) ;
2165
- else group = await this . getGroupMetadataCache ( sender ) ;
2163
+ // const cache = this.configService.get<CacheConf>('CACHE');
2164
+ // if (!cache.REDIS.ENABLED && !cache.LOCAL.ENABLED) group = await this.findGroup({ groupJid: sender }, 'inner');
2165
+ // else group = await this.getGroupMetadataCache(sender);
2166
+ group = await this . findGroup ( { groupJid : sender } , 'inner' ) ;
2166
2167
} catch ( error ) {
2167
2168
throw new NotFoundException ( 'Group not found' ) ;
2168
2169
}
0 commit comments