add_messages: Remove unused opts argument.

(imported from commit 5805348c39ec0db54b6bc6939ce2d85b4896500c)
This commit is contained in:
Tim Abbott 2013-04-10 10:18:09 -04:00
parent 104d3c8101
commit 12416bb128
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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) {