Zulip 服务器和 Web 应用程序。开源团队聊天可帮助团队保持高效和专注。
Go to file
Waseem Daher 1141bfa888 Properly update floating subject bar when you are at top of page.
There's this very edge-case issue which is: if you go to the top of
the page and narrow to something other than the top message, the
floating subject bar does not update.

Why? Well, the way that the narrowing code works is that it sets up
narrowing and then calls
  select_message_by_id(target_id, {then_scroll: true});
so that our selected message is in the view.

This in turn calls select_message, which calls recenter_view as
appropriate. This usually causes a scroll action, which in turn causes
the floating recipient bar to be updated.

But when we're at the top of the page, recenter_view doesn't need
to scroll at all! So the bar remains un-updated. Here we explicitly
update it to guard against that case.

This fixes Trac #651.

(imported from commit 6633cc8a81aedcbb31b30d7c1f27816f8808c700)
2013-01-10 10:59:03 -05:00
api populate_db: Remove obsolete mit_subs_list. 2013-01-08 17:23:22 -05:00
certs SSL certificates for zephyr.humbughq.com 2012-11-21 13:58:48 -05:00
confirmation Include autogenerated initial migrations for South. 2013-01-08 18:14:39 -05:00
humbug Temporarily increase get_updates polling timeout to deal with increased load. 2013-01-09 21:07:43 -05:00
servers nagios: revamp check_user_zephyr_mirror_liveness to monitor sudden drops in mirror use. 2013-01-08 10:53:33 -05:00
templates Notify the user when someone is speaking at them 2013-01-09 20:18:39 -05:00
tools Notify the user when someone is speaking at them 2013-01-09 20:18:39 -05:00
zephyr Properly update floating subject bar when you are at top of page. 2013-01-10 10:59:03 -05:00
.gitignore Add .swp and .swo files to the gitignore for vim 2012-12-19 15:07:03 -05:00
manage.py chmod +x manage.py 2012-10-25 15:22:18 -04:00