Skip to content

Commit 6277c5d

Browse files
Merge branch 'develop' into patch-1
2 parents 338cc93 + b1d7701 commit 6277c5d

33 files changed

+2777
-1767
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ body:
5959
value: |
6060
- OS: [e.g. Ubuntu 20.04, Windows 10, macOS 12.0]
6161
- Node.js version: [e.g. 18.17.0]
62-
- Evolution API version: [e.g. 2.3.6]
62+
- Evolution API version: [e.g. 2.3.7]
6363
- Database: [e.g. PostgreSQL 14, MySQL 8.0]
6464
- Connection type: [e.g. Baileys, WhatsApp Business API]
6565
validations:

CHANGELOG.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,71 @@
1+
# 2.3.7 (develop)
2+
3+
### Features
4+
5+
* **WhatsApp Business Meta Templates**: Add update and delete endpoints for Meta templates
6+
- New endpoints to edit and delete WhatsApp Business templates
7+
- Added DTOs and validation schemas for template management
8+
- Enhanced template lifecycle management capabilities
9+
10+
### Fixed
11+
12+
* **Baileys Message Processor**: Fix incoming message events not working after reconnection
13+
- Added cleanup logic in mount() to prevent memory leaks from multiple subscriptions
14+
- Recreate messageSubject if it was completed during logout
15+
- Remount messageProcessor in connectToWhatsapp() to ensure subscription is active
16+
- Fixed issue where onDestroy() calls complete() on RxJS Subject, making it permanently closed
17+
- Ensures old subscriptions are properly cleaned up before creating new ones
18+
19+
* **Baileys Authentication**: Resolve "waiting for message" state after reconnection
20+
- Fixed Redis keys not being properly removed during instance logout
21+
- Prevented loading of old/invalid cryptographic keys on reconnection
22+
- Fixed blocking state where instances authenticate but cannot send messages
23+
- Ensures new credentials (creds) are properly used after reconnection
24+
25+
* **OnWhatsapp Cache**: Prevent unique constraint errors and optimize database writes
26+
- Fixed `Unique constraint failed on the fields: (remoteJid)` error when sending to groups
27+
- Refactored query to use OR condition finding by jidOptions or remoteJid
28+
- Added deep comparison to skip unnecessary database updates
29+
- Replaced sequential processing with Promise.allSettled for parallel execution
30+
- Sorted JIDs alphabetically in jidOptions for accurate change detection
31+
- Added normalizeJid helper function for cleaner code
32+
33+
* **Proxy Integration**: Fix "Media upload failed on all hosts" error when using proxy
34+
- Created makeProxyAgentUndici() for Undici-compatible proxy agents
35+
- Fixed compatibility with Node.js 18+ native fetch() implementation
36+
- Replaced traditional HttpsProxyAgent/SocksProxyAgent with Undici ProxyAgent
37+
- Maintained legacy makeProxyAgent() for Axios compatibility
38+
- Fixed protocol handling in makeProxyAgent to prevent undefined errors
39+
40+
* **WhatsApp Business API**: Fix base64, filename and caption handling
41+
- Corrected base64 media conversion in Business API
42+
- Fixed filename handling for document messages
43+
- Improved caption processing for media messages
44+
- Enhanced remoteJid validation and processing
45+
46+
* **Chat Service**: Fix fetchChats and message panel errors
47+
- Fixed cleanMessageData errors in Manager message panel
48+
- Improved chat fetching reliability
49+
- Enhanced message data sanitization
50+
51+
* **Contact Filtering**: Apply where filters correctly in findContacts endpoint
52+
- Fixed endpoint to process all where clause fields (id, remoteJid, pushName)
53+
- Previously only processed remoteJid field, ignoring other filters
54+
- Added remoteJid field to contactValidateSchema for proper validation
55+
- Maintained multi-tenant isolation with instanceId filtering
56+
- Allows filtering contacts by any supported field instead of returning all contacts
57+
58+
* **Chatwoot and Baileys Integration**: Multiple integration improvements
59+
- Enhanced code formatting and consistency
60+
- Fixed integration issues between Chatwoot and Baileys services
61+
- Improved message handling and delivery
62+
63+
### Code Quality & Refactoring
64+
65+
* **Template Management**: Remove unused template edit/delete DTOs after refactoring
66+
* **Proxy Utilities**: Improve makeProxyAgent for Undici compatibility
67+
* **Code Formatting**: Enhance code formatting and consistency across services
68+
169
# 2.3.6 (2025-10-21)
270

371
### Features

Docker/swarm/evolution_api_v2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.7"
22

33
services:
44
evolution_v2:
5-
image: evoapicloud/evolution-api:v2.3.6
5+
image: evoapicloud/evolution-api:v2.3.7
66
volumes:
77
- evolution_instances:/evolution/instances
88
networks:

0 commit comments

Comments
 (0)