minor: Make get_huddles() internal to activity.js.

This commit is contained in:
Steve Howell 2016-11-11 09:00:09 -08:00
parent 48f671a314
commit eef633efa0
3 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,8 @@ global.people.add({
var activity = require('js/activity.js');
activity.update_huddles = function () {};
(function test_sort_users() {
var users = ['alice@zulip.com', 'fred@zulip.com', 'jill@zulip.com'];

View File

@ -64,6 +64,8 @@ exports.process_loaded_messages = function (messages) {
}
}
});
exports.update_huddles();
};
exports.get_huddles = function () {

View File

@ -341,7 +341,6 @@ exports.update_messages = function update_messages(events) {
// This function could probably benefit from some refactoring
exports.do_unread_count_updates = function do_unread_count_updates(messages) {
activity.process_loaded_messages(messages);
activity.update_huddles();
unread.process_loaded_messages(messages);
unread.update_unread_counts();
resize.resize_page_components();