|
|
@ -228,7 +228,7 @@ const createWhatsApp = async phone => {
|
|
|
|
const msgDirection = msg.key.fromMe ? 'outbound' : 'inbound';
|
|
|
|
const msgDirection = msg.key.fromMe ? 'outbound' : 'inbound';
|
|
|
|
const msgFrom = msg.key.fromMe ? whatsAppNo : remoteNo;
|
|
|
|
const msgFrom = msg.key.fromMe ? whatsAppNo : remoteNo;
|
|
|
|
const msgTo = msg.key.fromMe ? remoteNo : whatsAppNo;
|
|
|
|
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', {
|
|
|
|
waEmitter.emit('message:updated', {
|
|
|
|
id: msg.key.id,
|
|
|
|
id: msg.key.id,
|
|
|
|