mirror of https://github.com/zulip/zulip.git
message_list: Remove unused delay_render option.
This commit is contained in:
parent
8cb383223d
commit
ad6de6e268
|
@ -65,7 +65,7 @@ exports.MessageList.prototype = {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((self === exports.narrowed) && !self.empty() &&
|
if ((self === exports.narrowed) && !self.empty() &&
|
||||||
(self.selected_id() === -1) && !opts.delay_render) {
|
(self.selected_id() === -1)) {
|
||||||
// And also select the newly arrived message.
|
// And also select the newly arrived message.
|
||||||
self.select_id(self.selected_id(), {then_scroll: true, use_closest: true});
|
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) {
|
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;
|
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) {
|
remove_and_rerender: function MessageList_remove_and_rerender(messages) {
|
||||||
|
|
|
@ -13,7 +13,7 @@ exports.add_messages = function add_messages(messages, msg_list, opts) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
opts = _.extend({messages_are_new: false, delay_render: false}, opts);
|
opts = _.extend({messages_are_new: false}, opts);
|
||||||
|
|
||||||
loading.destroy_indicator($('#page_loading_indicator'));
|
loading.destroy_indicator($('#page_loading_indicator'));
|
||||||
$('#first_run_message').remove();
|
$('#first_run_message').remove();
|
||||||
|
|
Loading…
Reference in New Issue