mirror of https://github.com/zulip/zulip.git
minor: Make get_huddles() internal to activity.js.
This commit is contained in:
parent
48f671a314
commit
eef633efa0
|
@ -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'];
|
||||
|
||||
|
|
|
@ -64,6 +64,8 @@ exports.process_loaded_messages = function (messages) {
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
exports.update_huddles();
|
||||
};
|
||||
|
||||
exports.get_huddles = function () {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue