Skip to content

Debug new posts not showing after pagination#44

Draft
hinsley wants to merge 9 commits intomainfrom
cursor/debug-new-posts-not-showing-after-pagination-8c4c
Draft

Debug new posts not showing after pagination#44
hinsley wants to merge 9 commits intomainfrom
cursor/debug-new-posts-not-showing-after-pagination-8c4c

Conversation

@hinsley
Copy link
Owner

@hinsley hinsley commented Aug 21, 2025

Add GetHistory fallback for latest posts and adjust last page fetch logic to ensure new posts appear immediately.

New posts were not showing due to Telegram search indexing lag when using messages.search for pagination. This change ensures the UI fetches the freshest posts by merging results from messages.getHistory and always requesting the latest page from the top.


Open in Cursor Open in Web

hinsley and others added 2 commits August 21, 2025 05:17
* Implement thread pagination with URL-based page navigation and controls

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Fix post pagination calculation with total post count

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Improve thread pagination with conditional buttons and page indicator

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Refactor pagination logic and remove duplicate redirect effect

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Revert last commit before redoing thread pagination

* Refactor pagination logic and URL parameter handling in BoardPage

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Simplify thread selection and navigation logic in BoardPage

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Refactor post pagination with client-side sorting and improved data fetching

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Fix MessageList rendering with dynamic key for thread and page changes

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Fix pagination navigation when loading cards in thread view

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

* Optimize thread pagination with server-side slicing and post counting

Co-authored-by: carterhinsley <carterhinsley@outlook.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: carterhinsley <carterhinsley@outlook.com>
@cursor
Copy link

cursor bot commented Aug 21, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Aug 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
forum-gram Ready Ready Preview Comment Aug 21, 2025 11:15am

Co-authored-by: carterhinsley <carterhinsley@outlook.com>
…unting

Co-authored-by: carterhinsley <carterhinsley@outlook.com>
Co-authored-by: carterhinsley <carterhinsley@outlook.com>
Co-authored-by: carterhinsley <carterhinsley@outlook.com>
Co-authored-by: carterhinsley <carterhinsley@outlook.com>
Co-authored-by: carterhinsley <carterhinsley@outlook.com>
Co-authored-by: carterhinsley <carterhinsley@outlook.com>
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