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:
Tim Abbott
2018-04-22 21:02:11 -07:00
parent 0c9b1dc9ff
commit e4c50ff4fd
14 changed files with 24 additions and 52 deletions

View File

@@ -267,7 +267,7 @@ function process_notification(notification) {
var msg_count = 1;
var notification_source;
var raw_operators = [];
var opts = {select_first_unread: true, trigger: "notification click"};
var opts = {trigger: "notification click"};
// Convert the content to plain text, replacing emoji with their alt text
content = $('<div/>').html(message.content);
ui.replace_emoji_with_text(content);