left sidebar: Make sure the selected stream is visible in left sidebar.

This triggers a scroll in the left sidebar after an initial narrow if
the target stream isn't visible.

Fixes #9043.
This commit is contained in:
Cynthia Lin
2018-07-06 11:23:20 -07:00
committed by Tim Abbott
parent 66df4e3e84
commit c3b1381c2a
3 changed files with 44 additions and 1 deletions

View File

@@ -51,6 +51,7 @@ function process_result(data, opts) {
activity.process_loaded_messages(messages);
stream_list.update_streams_sidebar();
pm_list.update_private_messages();
stream_list.maybe_scroll_narrow_into_view();
if (opts.cont !== undefined) {
opts.cont(data);