diff --git a/package.json b/package.json index ec67a6fe2..b3e2b8272 100644 --- a/package.json +++ b/package.json @@ -126,8 +126,6 @@ "devDependencies": { "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", - "@swc/core": "^1.13.5", - "@swc/helpers": "^0.5.17", "@types/compression": "^1.7.5", "@types/cors": "^2.8.17", "@types/express": "^4.17.18", diff --git a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts index ea5d3e0e1..c015f3b52 100644 --- a/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts +++ b/src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts @@ -1720,6 +1720,9 @@ export class BaileysStartupService extends ChannelStartupService { } if (settings?.msgCall?.trim().length > 0 && call.status == 'offer') { + if (call.from.endsWith('@lid')) { + call.from = await this.client.signalRepository.lidMapping.getPNForLID(call.from as string); + } const msg = await this.client.sendMessage(call.from, { text: settings.msgCall }); this.client.ev.emit('messages.upsert', { messages: [msg], type: 'notify' }); diff --git a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts index b1e95f07d..a50fce385 100644 --- a/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts +++ b/src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts @@ -678,7 +678,7 @@ export class ChatwootService { } const isGroup = remoteJid.includes('@g.us'); - const chatId = isGroup ? remoteJid : remoteJid.split('@')[0]; + const chatId = isGroup ? remoteJid : remoteJid.split('@')[0].split(':')[0]; let nameContact = !body.key.fromMe ? body.pushName : chatId; const filterInbox = await this.getInbox(instance); if (!filterInbox) return null;