Extract message_util.js

This commit is contained in:
Steve Howell
2017-03-19 14:43:38 -07:00
committed by Tim Abbott
parent 8d3d70984d
commit fd856d728c
9 changed files with 52 additions and 41 deletions

View File

@@ -21,7 +21,7 @@ exports.update_in_home_view = function (sub, value) {
home_msg_list.clear({clear_selected_id: false});
// Recreate the home_msg_list with the newly filtered message_list.all
message_store.add_messages(message_list.all.all_messages(), home_msg_list);
message_util.add_messages(message_list.all.all_messages(), home_msg_list);
// Ensure we're still at the same scroll position
if (ui_state.home_tab_obscured()) {
@@ -44,7 +44,7 @@ exports.update_in_home_view = function (sub, value) {
pointer.suppress_scroll_pointer_update = true;
if (! home_msg_list.empty()) {
message_store.do_unread_count_updates(home_msg_list.all_messages());
message_util.do_unread_count_updates(home_msg_list.all_messages());
}
}, 0);