message_list: Remove unused delay_render option.

This commit is contained in:
Steve Howell 2018-05-14 20:21:14 +00:00 committed by Tim Abbott
parent 8cb383223d
commit ad6de6e268
2 changed files with 4 additions and 6 deletions

View File

@ -65,7 +65,7 @@ exports.MessageList.prototype = {
}
if ((self === exports.narrowed) && !self.empty() &&
(self.selected_id() === -1) && !opts.delay_render) {
(self.selected_id() === -1)) {
// And also select the newly arrived message.
self.select_id(self.selected_id(), {then_scroll: true, use_closest: true});
}
@ -267,12 +267,10 @@ exports.MessageList.prototype = {
},
append_to_view: function (messages, opts) {
opts = _.extend({delay_render: false, messages_are_new: false}, opts);
opts = _.extend({messages_are_new: false}, opts);
this.num_appends += 1;
if (!opts.delay_render) {
this.view.append(messages, opts.messages_are_new);
}
this.view.append(messages, opts.messages_are_new);
},
remove_and_rerender: function MessageList_remove_and_rerender(messages) {

View File

@ -13,7 +13,7 @@ exports.add_messages = function add_messages(messages, msg_list, opts) {
return;
}
opts = _.extend({messages_are_new: false, delay_render: false}, opts);
opts = _.extend({messages_are_new: false}, opts);
loading.destroy_indicator($('#page_loading_indicator'));
$('#first_run_message').remove();