mirror of https://github.com/zulip/zulip.git
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:
parent
a7b466118e
commit
cad295b9d9
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue