Refactor JID creation and fetch chats

- Introduced a new utility function `createJid` to standardize JID creation across the application, replacing the previous method in `ChannelStartupService`.
- Updated multiple services to utilize the new `createJid` function for improved consistency and maintainability.
- Added a `cleanMessageData` method in `ChannelStartupService` to sanitize message objects before processing.
- Updated CHANGELOG to reflect the refactor on chat fetching logic and the introduction of the new JID utility.
This commit is contained in:
Davidson Gomes
2025-01-22 10:16:48 -03:00
parent b0219e5e5a
commit ab5eb80edd
6 changed files with 263 additions and 177 deletions

View File

@@ -9,6 +9,7 @@
* Correction of webhook global
* Fixed send audio with whatsapp cloud api
* Refactor on fetch chats
# 2.2.0 (2024-10-18 10:00)