Description:
Since 5.0 I consider that some chats are loading history for a long time (some even infinite).
But on any action, history is loaded immediately.
Steps to reproduce:
- Search user you don't have recent talk (for easy reproduce, that could be any chats in fact)
- Click to start conversation with that user
- Chat history is loading even if there is no history and it as a brand new DM
Expected behavior:
Chats open fast like it was on a pre 5.0 versions
Actual behavior:

From opens server

Server Setup Information:
- Version of Rocket.Chat Server: 5.0.0
- Operating System: OL8
- Deployment Method: docker
- Number of Running Instances: 3
- DB Replicaset Oplog: Enabled
- NodeJS Version: v14.19.3
- MongoDB Version: 4.4.12 / wiredTiger (oplog Enabled)
Client Setup Information
- Desktop App or Browser Version: Chrome 103
- Operating System: Windows 10
Additional context
I see it on open.rocket.chat as well
Relevant logs:
No logs in moment of loading...