fix(baileys): handle undefined status in update by defaulting to 'DELETED'

This commit is contained in:
Willian Coqueiro 2025-10-12 15:29:48 +00:00
parent 4b043cb4b8
commit 2feaf1c74e

View File

@ -1465,7 +1465,7 @@ export class BaileysStartupService extends ChannelStartupService {
remoteJid: key?.remoteJid,
fromMe: key.fromMe,
participant: key?.participant,
status: status[update.status],
status: status[update.status] ?? 'DELETED',
pollUpdates,
instanceId: this.instanceId,
};