Merge remote-tracking branch 'origin/main'

dev/supplier-email-drawer
Lei OT 9 months ago
commit 93e63529f4

@ -1,7 +1,7 @@
{
"name": "global-sales",
"private": true,
"version": "1.3.0-beta.1",
"version": "1.3.0",
"type": "module",
"scripts": {
"dev": "vite",

@ -131,10 +131,12 @@ const createWhatsApp = async phone => {
const imageFilename = './temp/image_' + whatsAppNo + '_' + msg.key.id + fileExtension;
await writeFile(imageFilename, imageBuffer);
const msgStatus = msg.status === undefined ? '' : formatStatus(msg.status);
waEmitter.emit(emitEventName, {
id: msg.key.id,
externalId,
status: formatStatus(msg.status),
status: msgStatus,
direction: msgDirection,
from: msgFrom,
to: msgTo,
@ -148,6 +150,7 @@ const createWhatsApp = async phone => {
},
conversation: {
type: isJidUser(msg.key.remoteJid) ? 'individual' : 'group',
name: groupSubject,
},
customerProfile: {
id: decodeJid(msg.key.participant),

Loading…
Cancel
Save