mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
This is required to get historical messages that might be within the message ID range of your home view. I think we could avoid calling load_old_messages on every narrow by tracking when the user last subscribed to each stream, and if the user subscribed before the first message in the current home view message window (aka the messages used for the fast-path narrowing), don't call load_old_messages. This would happen almost every time. But it would require a schema change to do this. We also remove the load_more_messages call from hashchange.initialize. It is no longer required now that we're calling load_old_messages on each narrow anyway. (imported from commit 1c78c183e61392429592ae89d566315be7be8999)
3.8 KiB
3.8 KiB