We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c285be commit 23970e5Copy full SHA for 23970e5
1 file changed
src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts
@@ -3004,6 +3004,18 @@ export class BaileysStartupService extends ChannelStartupService {
3004
status: 'DELETED',
3005
},
3006
});
3007
+ const messageUpdate: any = {
3008
+ messageId: message.id,
3009
+ keyId: messageId,
3010
+ remoteJid: response.key.remoteJid,
3011
+ fromMe: response.key.fromMe,
3012
+ participant: response.key?.remoteJid,
3013
+ status: 'DELETED',
3014
+ instanceId: this.instanceId,
3015
+ };
3016
+ await this.prismaRepository.messageUpdate.create({
3017
+ data: messageUpdate,
3018
+ });
3019
} else {
3020
await this.prismaRepository.message.deleteMany({
3021
where: {
0 commit comments