narrow: Fix incorrect default then_select_id.

Previously we defaulted to current_msg_list.selected_id, which was
fine if you were narrowing from the home view, but if you navigated to
a narrow with no messages in it and then clicked something in the left
panel or used the search bar, it wouldn't work.

Fixes trac: #870.

(imported from commit 5ee480d8d2b1fb300fccbe75e04135d977a1fc07)
This commit is contained in:
Tim Abbott 2013-02-28 17:20:30 -05:00
parent a7b466118e
commit cad295b9d9
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ function build_filter(operators_mixed_case) {
exports.activate = function (operators, opts) {
opts = $.extend({}, {
allow_collapse: true,
then_select_id: current_msg_list.selected_id()
then_select_id: home_msg_list.selected_id()
}, opts);
// Unfade the home view before we switch tables.