mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
narrow: Remove unnecessary select_first_unread option.
We consistently either pass a `then_select_id` into narrow.activate, or were using the select_first_unread option. Now, we just compute select_first_unread based on the value of then_select_id.
This commit is contained in:
@@ -481,13 +481,7 @@ exports.narrow_for_user = function (opts) {
|
||||
var user_id = buddy_list.get_key_from_li({li: opts.li});
|
||||
var email = people.get_person_from_user_id(user_id).email;
|
||||
|
||||
var narrow_opts = {
|
||||
select_first_unread: true,
|
||||
trigger: 'sidebar',
|
||||
};
|
||||
|
||||
narrow.by('pm-with', email, narrow_opts);
|
||||
|
||||
narrow.by('pm-with', email, {trigger: 'sidebar'});
|
||||
exports.clear_and_hide_search();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user