2720 Commits

Author SHA1 Message Date
Davidson Gomes
af5122c3f0 Merge pull request #2422 from enginer/fix/docker-compose-startup
Security Scan / Dependency Review (push) Has been skipped
Check Code Quality / check-lint-and-build (push) Failing after 1m20s
Build Docker image / Build and Deploy (push) Failing after 1m32s
Security Scan / CodeQL Analysis (javascript) (push) Failing after 1m31s
fix(docker): fix docker-compose startup failures for fresh installs
2026-02-24 12:23:21 -03:00
Davidson Gomes
800df082bd Merge pull request #2429 from sosamilton/fix/meta-cloud-api-chatbot
Fix/meta cloud api chatbot
2026-02-24 12:18:46 -03:00
Davidson Gomes
4c039fdf58 Merge branch 'develop' into fix/meta-cloud-api-chatbot 2026-02-24 12:18:28 -03:00
Davidson Gomes
138ff23cf8 Merge pull request #2441 from rafaelberrocalj/feature/sqs-endpoint
feat(sqs): add support for custom base_url
2026-02-24 12:17:42 -03:00
Davidson Gomes
6bb1637699 Merge pull request #2442 from alexandrereyes/feat/history-sync-event
feat(history-sync): emit messaging-history.set event on sync completion and fix race condition
2026-02-24 12:16:36 -03:00
Davidson Gomes
db02824ef2 Merge pull request #2397 from awanmh/develop
fix: resolve facebook ads context readability (externalAdReply)
2026-02-24 12:16:00 -03:00
Davidson Gomes
d56f312728 Merge pull request #2393 from ValdecirMysian/main
feat(chatwoot): add support for WhatsApp catalog orderMessage
2026-02-24 12:15:47 -03:00
Davidson Gomes
5283fdc32d Merge pull request #2382 from webmastersites/fix/interactive-devicesent
Fix/interactive devicesent
2026-02-24 12:15:25 -03:00
Davidson Gomes
db60f04e91 Merge pull request #2372 from JefersonRamos/bugfix/messaging-history-chats-return-remoteJid-invalid
fix(whatsapp): enhance contact and chat handling with improved JID ma…
2026-02-24 12:11:51 -03:00
Davidson Gomes
21513f5d5c Remove unnecessary debug logs from sync function
Removed debug logging for messages, chats, and contacts.
2026-02-24 12:10:06 -03:00
Davidson Gomes
b7aa2f2add Merge pull request #2365 from FelipeFrancca/main
Bug Fix: QR Code Infinite Reconnection Loop
2026-02-24 12:09:15 -03:00
Davidson Gomes
00b42e2aef Merge branch 'develop' into main 2026-02-24 12:09:04 -03:00
Davidson Gomes
550d35aa35 Merge pull request #2361 from JefersonRamos/feat/send-message-with-key-id
feat: add generateMessageID method and support for messageId in sendM…
2026-02-24 12:07:48 -03:00
Davidson Gomes
c74ba9fbd8 Merge pull request #2360 from vduggen/develop
fix(baileys): improve error logging for fetching latest WaWeb version
2026-02-24 12:07:35 -03:00
Davidson Gomes
070cd71851 Merge pull request #2347 from eltonciatto/develop
feat: add typebot file support & fix whatsapp active link preview
2026-02-24 12:07:13 -03:00
Davidson Gomes
d666d43ee7 Merge pull request #2346 from ffigueroa/feat/audio-waveform-visualization
feat(audio): Add waveform visualization for PTT voice messages
2026-02-24 12:06:20 -03:00
Davidson Gomes
bafd209196 Merge pull request #2333 from augustolima1/fix/mysql-compat-lid
fix(mysql): compatibilidade da coluna lid e queries RAW
2026-02-24 12:06:02 -03:00
Davidson Gomes
ce51b1305a Merge branch 'develop' into fix/mysql-compat-lid 2026-02-24 12:05:52 -03:00
Alexandre Reyes Martins
6f759443b0 fix(history-sync): reset cumulative counters on new sync start and abort
Detect new sync runs by tracking lastProgress — when progress resets or
decreases, counters are zeroed before accumulating. This prevents stale
counts from aborted syncs leaking into subsequent runs.

Addresses Sourcery review feedback on PR #2442.
2026-02-24 14:06:32 +00:00
Alexandre Reyes Martins
1242baa5a4 fix(history-sync): use cumulative counts in MESSAGING_HISTORY_SET event
Track message, chat and contact counts across all history sync batches
using instance-level counters, so the final event reports accurate
totals instead of only the last batch counts.

Addresses Sourcery review feedback on PR #2440.
2026-02-24 13:58:27 +00:00
Alexandre Reyes Martins
ec7999b04f feat(history-sync): emit messaging-history.set event on sync completion and fix race condition
Reorder webhook emissions (CHATS_SET, MESSAGES_SET) to fire after database
persistence, fixing a race condition where consumers received the event
before data was queryable.

Emit a new MESSAGING_HISTORY_SET event when progress reaches 100%,
allowing consumers to know exactly when history sync is complete and
messages are available in the database.

Register the new event across all transport types (Webhook, WebSocket,
RabbitMQ, NATS, SQS, Kafka, Pusher) and validation schemas.
2026-02-24 13:58:27 +00:00
Rafael Berrocal Justiniano
0419e82d8f fix: handle potential trailing slashes 2026-02-23 21:22:19 -03:00
Rafael Berrocal Justiniano
e2a7716e19 feat(sqs): add support for custom base_url 2026-02-23 21:07:21 -03:00
Milton Sosa
cb4a14d1ef fix(meta): normalize execution order and fix chatwootIds in Cloud API
Two bugs in BusinessStartupService message processing:

1. Execution order: Chatwoot was processed AFTER the bot emit(), but
   Baileys channel processes Chatwoot FIRST. This inconsistency meant
   the bot could not access chatwootConversationId/chatwootInboxId
   when processing messages from the Cloud API.

2. chatwootIds assignment: chatwootInboxId and chatwootConversationId
   were both incorrectly set to chatwootSentMessage.id instead of
   .inbox_id and .conversation_id respectively.

Fix: reorder to Chatwoot-first (consistent with Baileys) and use the
correct property names from the Chatwoot response object.
2026-02-16 04:46:27 -03:00
Milton Sosa
42b46e0813 fix(chatbot): closed session should not block bot re-activation
When a chatbot session exists with status='closed', the emit() method
returned early, preventing the bot from re-activating on new messages.

Root cause: the guard 'if (session.status === closed) return' was meant
to skip sessions not awaiting user input, but it also prevented new
conversations from starting after a bot flow completed.

Fix: nullify the session instead of returning, so processBot enters the
'!session' branch and creates a fresh session.

Also adds null guards:
- getConversationMessage: return empty string instead of undefined
- findBotByTrigger: handle null/undefined content gracefully
2026-02-16 04:46:22 -03:00
Davidson Gomes
7fd7219287 Merge pull request #2388 from Santosl2/feat/increase-network-family
Security Scan / Dependency Review (push) Has been skipped
Build Docker image / Build and Deploy (push) Failing after 25s
Security Scan / CodeQL Analysis (javascript) (push) Failing after 36s
Check Code Quality / check-lint-and-build (push) Successful in 2m4s
fix: Qr Code fix increasing network family timeout
2026-02-10 00:52:02 -03:00
Davidson Gomes
e568704795 Merge pull request #2332 from joinads/main
Security Scan / Dependency Review (push) Has been skipped
Security Scan / CodeQL Analysis (javascript) (push) Failing after 2m30s
Check Code Quality / check-lint-and-build (push) Successful in 3m34s
Build Docker image / Build and Deploy (push) Failing after 4m6s
Evolution API - Multi-Device Fix
2026-02-09 16:07:12 -03:00
yurii
5dd18451ea fix(docker): fix docker-compose startup failures for fresh installs
- Remove dokploy-network external network dependency that breaks
  docker-compose up on fresh installs without the network pre-created
- Fix evolution-manager frontend crash by adding nginx.conf with
  corrected gzip_proxied directive (removes invalid must-revalidate value)
- Add missing POSTGRES_DATABASE, POSTGRES_USERNAME, POSTGRES_PASSWORD
  to .env.example (required by docker-compose postgres service)
- Fix DATABASE_CONNECTION_URI hostname from postgres to evolution-postgres
  to match the docker-compose service name

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 14:44:31 +01:00
ValdecirMysian
cfa475d47b Implement quoted product message handling
Added handling for quoted product messages including price extraction and formatting.
2026-02-01 15:37:20 -03:00
awanmh
c84626d244 fix: add fallback path for externalAdReply as suggested by sourcery 2026-01-30 17:00:38 +07:00
ValdecirMysian
796bc4c89a Implement LID to phone number mapping and caching
Added LID to phone number mapping and resolution logic to handle LID addresses. Implemented caching for LID mappings and added methods to clean and save mappings.
2026-01-29 20:53:23 -03:00
ValdecirMysian
22048fe211 Refactor message data handling in chatwoot.service.ts
Filtered null/undefined values from replyToIds before sending and constructed messageData object to include valid content_attributes.
2026-01-29 13:03:06 -03:00
ValdecirMysian
367153e0b2 add support for WhatsApp catalog orderMessage 2026-01-28 17:51:22 -03:00
ValdecirMysian
6c274f71ae Add caching for processed order IDs to prevent duplicates
Implement cache for deduplication of order messages to avoid processing duplicates.
2026-01-28 12:18:27 -03:00
ValdecirMysian
2ff572d80c Enhance order message structure and content
Refactor order message handling and improve formatting.
2026-01-28 05:26:42 -03:00
awanmh
6827693c63 fix: resolve facebook ads context readability 2026-01-28 11:58:36 +07:00
Santosl2
be30cdae04 fix(package): add network family autoselection timeout to start:prod script 2026-01-28 00:51:29 -03:00
ValdecirMysian
2d729a3a35 Enhance getTypeMessage to include orderMessage
Added support for orderMessage in getTypeMessage method and updated message formatting for orders.
2026-01-28 00:03:27 -03:00
Bruno Fernandes
a4f8e95d18 chore(lint): fix formatting and remove stray text 2026-01-26 13:55:41 -03:00
root
08f8d055d4 fix(baileys): interactive buttons via deviceSentMessage + CTA limits 2026-01-26 13:19:50 -03:00
root
d15c434b4c fix(baileys): interactive buttons via deviceSentMessage + CTA limits 2026-01-26 13:07:00 -03:00
Jeferson Ramos
d6e8210bc6 Merge remote-tracking branch 'upstream/develop' into bugfix/messaging-history-chats-return-remoteJid-invalid
# Conflicts:
#	src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts
2026-01-22 15:15:27 -03:00
Jeferson Ramos
636b9a8d06 fix(whatsapp): ensure accountLid is defined before checking for '@lid' in remoteLid assignment 2026-01-22 15:08:33 -03:00
Jeferson Ramos
9401216927 fix(whatsapp): lint 2026-01-21 17:42:50 -03:00
Jeferson Ramos
b8d6c87360 fix(whatsapp): correct remoteJid handling and optimize chat creation logic 2026-01-21 17:39:19 -03:00
Jeferson Ramos
d131e83d08 fix(whatsapp): handle remoteLid assignment for chats with accountLid containing '@lid' 2026-01-21 09:53:28 -03:00
Jeferson Ramos
06b0ff0e27 fix(whatsapp): update chatsRaw handling to remove remoteLid and optimize variable declaration 2026-01-20 13:14:46 -03:00
Jeferson Ramos
3979a9e08c fix(whatsapp): remove unnecessary blank line in contacts mapping loop 2026-01-20 10:53:06 -03:00
Jeferson Ramos
70d334b0b6 fix(whatsapp): enhance contact and chat handling with improved JID mapping and debug logging 2026-01-20 10:45:58 -03:00
felipe.francca
69e7403ded refactor: apply code review suggestions (safety checks and logging) 2026-01-19 15:14:55 -03:00