RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.34k stars 10.47k forks source link

Infinite scroll does not work to load history of visited channels #33469

Open jburel-ca opened 1 week ago

jburel-ca commented 1 week ago

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:

  1. Go to a channel (ie: general)
  2. Go to another channel (ie: support)
  3. Go back to the previous channel (ie: general)
  4. 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.

image

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

divyansharma001 commented 1 week ago

can I solve this issue?