mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2026-01-23 20:12:48 -06:00
fix(baileys): handle undefined status in update by defaulting to 'DELETED'
This commit is contained in:
@@ -1465,7 +1465,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
remoteJid: key?.remoteJid,
|
remoteJid: key?.remoteJid,
|
||||||
fromMe: key.fromMe,
|
fromMe: key.fromMe,
|
||||||
participant: key?.participant,
|
participant: key?.participant,
|
||||||
status: status[update.status],
|
status: status[update.status] ?? 'DELETED',
|
||||||
pollUpdates,
|
pollUpdates,
|
||||||
instanceId: this.instanceId,
|
instanceId: this.instanceId,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user