mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user