Allow an empty home view when unnarrowing

(imported from commit 69f1a84b23ae8942db58851a1a1c6723c26df560)
This commit is contained in:
Leo Franchi 2014-01-27 14:02:09 -05:00
parent 8aaf1cf8c2
commit dd7d31c7a6
1 changed files with 4 additions and 1 deletions

View File

@ -435,9 +435,12 @@ exports.deactivate = function () {
// We fall back to the closest selected id, if the user has removed a
// stream from the home view since leaving it the old selected id might
// no longer be there
// Additionally, we pass empty_ok as the user may have removed **all** streams
// from her home view
current_msg_list.select_id(current_msg_list.selected_id(), {
then_scroll: !preserve_pre_narrowing_screen_position,
use_closest: true
use_closest: true,
empty_ok: true
});
if (preserve_pre_narrowing_screen_position) {