RocketChat / RocketChat/Rocket.Chat
Infinite scroll does not work to load history of visited channels
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Hello,
When you visit a channel and come back to it, you can't load history: infinite scroll not working and you can't get previous messages.
This bug is reproduced on https://open.rocket.chat/ too and it's very annoying!
How can we fix that?
Thank you for your help!
Steps to reproduce:
- Go to a channel (ie: general)
- Go to another channel (ie: support)
- Go back to the previous channel (ie: general)
- Scroll to the top of the page until older messages are loaded in ajax
Expected behavior:
We are supposed to have infinite scroll as well as a loading animation to retrieve messages older than those displayed on first loading using ajax.
Actual behavior:
Nothing is happening: we are stuck at the top of the page and older messages are not loading.
Note: This works the very first time the channel loads! If you want to retrieve older messages on a channel you have already visited, you must refresh the page.
Server Setup Information:
Version of Rocket.Chat Server: 6.12.1
License Type: Community
Number of Users: 100-500
Operating System: Debian 11
Deployment Method: tar
Number of Running Instances: 1
DB Replicaset Oplog: 1
NodeJS Version: v14.21.3
MongoDB Version: 5.0.21
Client Setup Information
- Desktop App or Browser Version: all latest browsers / applications
- Operating System: MacOS / iOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the channel navigation sequence in the issue on the reported Rocket.Chat setup, then inspect the client-side message history and infinite-scroll behavior after returning to a visited channel. Verify that scrolling to the top requests and displays older messages, with the loading animation, without requiring a page refresh.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100