Skip to content

Comments

fix: resolve chat search returning no results due to limit mismatch#73

Merged
GeiserX merged 1 commit intomasterfrom
fix/chat-search-422
Feb 15, 2026
Merged

fix: resolve chat search returning no results due to limit mismatch#73
GeiserX merged 1 commit intomasterfrom
fix/chat-search-422

Conversation

@GeiserX
Copy link
Owner

@GeiserX GeiserX commented Feb 15, 2026

Summary

  • Bug 1: The search bar sent limit=1000 but the /api/chats endpoint enforced le=500, causing FastAPI to reject every search request with a silent 422 error. Raised the API limit to le=1000.
  • Bug 2: When DISPLAY_CHAT_IDS was configured, the search parameter was never passed to the database query, making search non-functional for restricted viewers. Now passes search= to the DB call.

Test plan

  • Type a chat name in the search bar — results should appear
  • Search for a chat that would be on page 2+ of the paginated list — it should be found
  • If using DISPLAY_CHAT_IDS, verify search filters within the allowed chats

The search bar sent limit=1000 but the API enforced le=500, causing
FastAPI to reject every search request with a silent 422 error. Also
fixed DISPLAY_CHAT_IDS mode ignoring the search parameter entirely.
@GeiserX GeiserX merged commit 561f0b8 into master Feb 15, 2026
7 checks passed
@GeiserX GeiserX deleted the fix/chat-search-422 branch February 15, 2026 13:16
@github-actions
Copy link

🐳 Dev images published!

  • drumsergio/telegram-archive:dev
  • drumsergio/telegram-archive-viewer:dev

The dev/test instance will pick up these changes automatically (Portainer GitOps).

To test locally:

docker pull drumsergio/telegram-archive:dev
docker pull drumsergio/telegram-archive-viewer:dev

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.

1 participant