zulip/static
Tim Abbott 5d7aa4fae7 hashchange: Fix buggy narrowing to wrong message.
Due to a past refactoring, the from_reload argument to do_hashchange
changed from having true/undefined as the possible values to
true/false instead.  The check that sets the from_reload and
first_unread_from_server narrow options was thus incorreclty treating
from_reload of false the same as a from_reload of undefined.

As a result, if the browser had been loaded with a
page_params.initial_narrow_pointer (aka via the background reload code
path), then for the duration of that browser session, every time one
narrowed via a hashchange rather than an explicit click handler (which
apparently includes clicking on a PM thread in the left sidebar), we'd
end up narrowing with a then_select_id of the that initial narrow
pointer, not the correct first unread message.

The fix is simply changing the check for truthiness, not undefined, in
do_hashchange.
2017-04-26 12:07:56 -07:00
..
assets Change portico navbar style. 2017-02-13 17:02:03 -08:00
audio Change audible notification to a "knock" sound. 2014-02-12 17:09:39 -05:00
generated Move static/third/gemoji to static/generated/emoji. 2016-12-27 20:16:23 -08:00
html Fix end tags in 404/5xx pages. 2016-07-09 17:34:49 -07:00
images integrations: Remove deprecated Stash integration. 2017-04-24 22:35:23 -07:00
js hashchange: Fix buggy narrowing to wrong message. 2017-04-26 12:07:56 -07:00
locale Fix spelling of "occurred" in various places. 2017-04-17 20:29:07 -07:00
styles Shrink max display width of topics. 2017-04-25 17:51:47 -07:00
templates Clean account-settings.handlebars to use 4 space indents. 2017-04-26 00:16:22 -07:00
third KaTeX: Fix path to KaTeX bundle in production. 2017-04-21 14:56:19 -07:00
.gitignore Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
favicon.ico Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00
node_modules Create static/node_modules symlink. 2016-08-25 15:32:08 -07:00
robots.txt Move zephyr/static to just static. 2013-07-29 12:11:26 -04:00