Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird paging behaviour when chat has between 40 and 60 posts #392

Open
FelberMartin opened this issue Feb 6, 2025 · 0 comments
Open

Weird paging behaviour when chat has between 40 and 60 posts #392

FelberMartin opened this issue Feb 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@FelberMartin
Copy link
Collaborator

Describe the bug

When a chat has between 40 and 60 posts, the paging of posts does not retrieve the posts in the correct order. This messes with the indexing of posts introduced in #375, and in turn wrongly displays the unread posts indicator.

To Reproduce
Steps to reproduce the behavior:

  1. Go to a chat with > 40 but < 60 posts (TS2 > "notificationsbusters" between test_user_1 and test_user_2, or create a new group chat)
  2. In MetisChatList, add a simple Text that displays the index of the ChatListItem.IndexedPost
  3. Go to that chat
  4. See that the indexes do not start at 0

Expected behavior
The indexes should be in order.

Screenshots

Image

Additional context

After a refresh, or re-entering the same chat, the indexes behave correctly again.

@FelberMartin FelberMartin added the bug Something isn't working label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant