mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-09-07 06:43:36 -06:00
chore: Update group metadata cache on participants update
Refactored WhatsappBaileysService to update group metadata cache when a participants update event is triggered. This will improve the accuracy of the group metadata and ensure that it stays up-to-date with the latest changes in the group. Modified: - src/api/services/channels/whatsapp.baileys.service.ts
This commit is contained in:
parent
d0eee796ba
commit
75922e603b
@ -1413,6 +1413,8 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
action: ParticipantAction;
|
action: ParticipantAction;
|
||||||
}) => {
|
}) => {
|
||||||
this.sendDataWebhook(Events.GROUP_PARTICIPANTS_UPDATE, participantsUpdate);
|
this.sendDataWebhook(Events.GROUP_PARTICIPANTS_UPDATE, participantsUpdate);
|
||||||
|
|
||||||
|
this.updateGroupMetadataCache(participantsUpdate.id);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user