feat(whatsapp): enhance message fetching and processing logic by gomessguii · Pull Request #1449 · EvolutionAPI/evolution-api · GitHub
Skip to content

feat(whatsapp): enhance message fetching and processing logic#1449

Merged
DavidsonGomes merged 2 commits intoEvolutionAPI:developfrom
gomessguii:feature/enhance-message-fetching
May 15, 2025
Merged

feat(whatsapp): enhance message fetching and processing logic#1449
DavidsonGomes merged 2 commits intoEvolutionAPI:developfrom
gomessguii:feature/enhance-message-fetching

Conversation

@gomessguii
Copy link
Copy Markdown
Member

@gomessguii gomessguii commented May 15, 2025

  • Added a new method fetchMessages to retrieve messages based on various query parameters.
  • Improved handling of pushName for messages, ensuring proper assignment based on participant information.
  • Refactored user devices cache initialization for better readability.
  • Cleaned up commented-out code related to message recovery.

Summary by Sourcery

Enhance WhatsApp message handling by adding a flexible fetchMessages API, improving pushName resolution, refining chat filtering rules, and tidying up related cache setup and dead code.

New Features:

  • Introduce fetchMessages method for paginated and filtered retrieval of messages.

Enhancements:

  • Assign missing pushName values based on participants or contact mappings.
  • Respect full history sync for group chats in shouldIgnoreJid logic.
  • Refactor userDevicesCache initialization for improved readability.
  • Remove commented-out message recovery logic to clean up codebase.

- Added a new method `fetchMessages` to retrieve messages based on various query parameters.
- Improved handling of `pushName` for messages, ensuring proper assignment based on participant information.
- Refactored user devices cache initialization for better readability.
- Cleaned up commented-out code related to message recovery.
@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented May 15, 2025

@DavidsonGomes DavidsonGomes merged commit a1cc504 into EvolutionAPI:develop May 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants