Fix traceback loading the app with all streams muted.

(imported from commit 42190bdbba3d56e79d1d9e19b85d6bba0d0d747f)
This commit is contained in:
Tim Abbott 2013-12-18 10:28:57 -05:00
parent 45dd03bfc7
commit 0a1febacb3
1 changed files with 1 additions and 1 deletions

View File

@ -1329,7 +1329,7 @@ function main() {
// //
// We fall back to the closest selected id, as the user may have removed // We fall back to the closest selected id, as the user may have removed
// a stream from the home before already // a stream from the home before already
if (home_msg_list.selected_id() === -1) { if (home_msg_list.selected_id() === -1 && !home_msg_list.empty()) {
home_msg_list.select_id(page_params.initial_pointer, home_msg_list.select_id(page_params.initial_pointer,
{then_scroll: true, use_closest: true}); {then_scroll: true, use_closest: true});
} }