Skip to content

Commit 2feaf1c

Browse files
committed
fix(baileys): handle undefined status in update by defaulting to 'DELETED'
1 parent 4b043cb commit 2feaf1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ export class BaileysStartupService extends ChannelStartupService {
14651465
remoteJid: key?.remoteJid,
14661466
fromMe: key.fromMe,
14671467
participant: key?.participant,
1468-
status: status[update.status],
1468+
status: status[update.status] ?? 'DELETED',
14691469
pollUpdates,
14701470
instanceId: this.instanceId,
14711471
};

0 commit comments

Comments
 (0)