Remove throttling of presence updates coming from server events.

Now that we're doing presence updates in a performant fashion, we
don't need to throttle processing these events, and in fact the
throttling of these events created a correctness problem, since we're
now doing incremental updates rather than just rerendering everything
after each event.
This commit is contained in:
Tim Abbott
2016-03-19 23:03:00 -07:00
parent 4bb48abc0d
commit 29b8d71871
2 changed files with 8 additions and 18 deletions

View File

@@ -45,7 +45,7 @@ activity.presence_info = {
};
(function test_presence_list_full_update() {
var users = activity._update_users();
var users = activity.update_users();
assert.deepEqual(users, [
{ name: 'Fred Flintstone',
email: 'fred@zulip.com',
@@ -86,7 +86,7 @@ activity.presence_info = {
};
activity.presence_info['alice@zulip.com'] = users['alice@zulip.com'];
users = activity._update_users(users);
users = activity.update_users(users);
assert.deepEqual(users, [
{ name: 'Alice Smith',
email: 'alice@zulip.com',
@@ -105,7 +105,7 @@ activity.presence_info = {
'mark@zulip.com': {status: 'active'}
};
activity.presence_info['mark@zulip.com'] = users['mark@zulip.com'];
users = activity._update_users(users);
users = activity.update_users(users);
assert.deepEqual(users, [
{ name: 'Marky Mark',
email: 'mark@zulip.com',