Zulip 服务器和 Web 应用程序。开源团队聊天可帮助团队保持高效和专注。
Go to file
Tim Abbott 2d9a21654b Fix messages being added to the home view out of order.
So here's the reproduction recipe:
(1) Find a narrow that doesn't have any messages since 4 days ago

(2) Directly visit that narrow in your browser (or wait for someone to
do a deploy and thus auto-reload)

(3) Wait until load_old_messages has been called at least once

(4) Un-narrow

(5) Scroll up, and notice that the 400 most recent messages are above
sets of older messages.

The cause is that the code in add_messages assumed that
selected_message_id was within the range of message already in the
home view.  This is true in most cases where add_message is being
called, but it is not true in the case that the user was in a narrowed
view containing only very old messages (And thus selected_message_id
would be older than everything in the home view).

We can fix this by tracking persistent_message_id separately and using
that for the relevant test in add_messages.

(imported from commit f0da2561ba68f729343b260adc398029fae6acf7)
2013-02-08 14:43:13 -05:00
api api: Move integrations into their own subdirectory. 2013-02-07 14:15:44 -05:00
bots bots: Import new copy of our Trac bot. 2013-02-06 18:07:51 -05:00
certs Add wildcard certificate for *.e.humbughq.com. 2013-01-17 18:56:39 -05:00
confirmation confirmation: Make send_confirmation accept custom templates and context. 2013-01-14 10:25:26 -05:00
humbug Remove CUSTOMER30-specific account views 2013-02-08 13:33:28 -05:00
servers [manual] Remove hunt server from Postgres config 2013-02-08 13:33:28 -05:00
templates Remove CUSTOMER30-specific account views 2013-02-08 13:33:28 -05:00
tools Fix messages being added to the home view out of order. 2013-02-08 14:43:13 -05:00
zephyr Fix messages being added to the home view out of order. 2013-02-08 14:43:13 -05:00
.gitignore gitignore: Add .DS_Store 2013-02-06 16:31:55 -05:00
manage.py chmod +x manage.py 2012-10-25 15:22:18 -04:00