mirror of https://github.com/zulip/zulip.git
add_messages: Remove unused opts argument.
(imported from commit 5805348c39ec0db54b6bc6939ce2d85b4896500c)
This commit is contained in:
parent
104d3c8101
commit
12416bb128
|
@ -162,7 +162,7 @@ function stream_home_view_clicked(e) {
|
||||||
var saved_ypos = window.scrollY;
|
var saved_ypos = window.scrollY;
|
||||||
|
|
||||||
// Recreate the home_msg_list with the newly filtered all_msg_list
|
// Recreate the home_msg_list with the newly filtered all_msg_list
|
||||||
add_messages(all_msg_list.all(), home_msg_list, {append_to_table: true, update_unread_counts: false});
|
add_messages(all_msg_list.all(), home_msg_list);
|
||||||
|
|
||||||
// Ensure we're still at the same scroll position
|
// Ensure we're still at the same scroll position
|
||||||
window.scrollTo(0, saved_ypos);
|
window.scrollTo(0, saved_ypos);
|
||||||
|
|
|
@ -591,7 +591,7 @@ function add_messages_helper(messages, msg_list, predicate) {
|
||||||
return top_messages.length > 0;
|
return top_messages.length > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_messages(messages, msg_list, opts) {
|
function add_messages(messages, msg_list) {
|
||||||
var prepended = false;
|
var prepended = false;
|
||||||
if (!messages)
|
if (!messages)
|
||||||
return;
|
return;
|
||||||
|
@ -827,7 +827,7 @@ function load_old_messages(opts) {
|
||||||
// the all_msg_list as well, as the home_msg_list is reconstructed
|
// the all_msg_list as well, as the home_msg_list is reconstructed
|
||||||
// from all_msg_list.
|
// from all_msg_list.
|
||||||
if (opts.msg_list === home_msg_list) {
|
if (opts.msg_list === home_msg_list) {
|
||||||
add_messages(messages, all_msg_list, {append_to_table: false});
|
add_messages(messages, all_msg_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (messages.length !== 0 && !opts.cont_will_add_messages) {
|
if (messages.length !== 0 && !opts.cont_will_add_messages) {
|
||||||
|
|
Loading…
Reference in New Issue