Make it possible to load a specific page of messages in the context of navigating to a message #10911
Labels
core-team
E:Desktop Scalability For Mass Market
Issues related to make the app scalable for thousands of user at the same time
feature
Description
Right now, when navigating to a message either from search, from a pinned or reply message or later from a link, we get messages from the DB in order from newest to oldest until we reach the right message.
However, this can be pretty slow and also not great for memory, as we have to load a lot of useless messages.
The solution would be to instead have a new status-go function that loads a page of messages with the specific message we want in the middle.
Then we can update the chat view with those messages and we wouldn't have to get all those in between messages.
There are a couple of important details however:
I'm not exactly sure what is the best way to achieve the UI part of it. It might require new components that create a gap between the most recent messages (the normal chat list), and the navigated messages, since there would be lots of missing messages between them.
Maybe that "gap" (let's find a new word for that since we already use gap for store node gaps) component would be the one to store which cursor it is using, that was we know which page to load when scrolling.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: