diff --git a/wai-server/core/baileys/index.js b/wai-server/core/baileys/index.js index a71b5fc..c172b81 100644 --- a/wai-server/core/baileys/index.js +++ b/wai-server/core/baileys/index.js @@ -228,7 +228,7 @@ const createWhatsApp = async phone => { const msgDirection = msg.key.fromMe ? 'outbound' : 'inbound'; const msgFrom = msg.key.fromMe ? whatsAppNo : remoteNo; const msgTo = msg.key.fromMe ? remoteNo : whatsAppNo; - const msgStatus = msg.status === undefined ? '' : formatStatus(msg.status); + const msgStatus = formatStatus(msg.update.status); waEmitter.emit('message:updated', { id: msg.key.id,