add unreadMessages in the response by fernandeshenrique15 · Pull Request #1626 · EvolutionAPI/evolution-api · GitHub
Skip to content

add unreadMessages in the response#1626

Merged
DavidsonGomes merged 2 commits intoEvolutionAPI:developfrom
fernandeshenrique15:main
Jun 23, 2025
Merged

add unreadMessages in the response#1626
DavidsonGomes merged 2 commits intoEvolutionAPI:developfrom
fernandeshenrique15:main

Conversation

@fernandeshenrique15
Copy link
Copy Markdown
Contributor

@fernandeshenrique15 fernandeshenrique15 commented Jun 19, 2025

the original code was always sending 0, I added it to the select to get the information that is already in the database and include it in the response


O código original estava sempre enviando 0, adicionei no select para pegar a informação que já está no banco e incluir na resposta

Summary by Sourcery

Bug Fixes:

  • Populate unreadCount from Chat.unreadMessages in the SQL select instead of hardcoded zero

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @fernandeshenrique15 - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@DavidsonGomes DavidsonGomes changed the base branch from main to develop June 23, 2025 18:30
@DavidsonGomes DavidsonGomes merged commit 2e077a7 into EvolutionAPI:develop Jun 23, 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