Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix CPU spin on joining rooms #525

Merged
merged 2 commits into from
Oct 26, 2016
Merged

Fix CPU spin on joining rooms #525

merged 2 commits into from
Oct 26, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Oct 26, 2016

Ratelimit roomheader's updates and move some other things into
rate limited functions.

Fixes element-hq/element-web#1619
Fixes element-hq/element-web#1969

Ratelimit roomheader's updates and move some other things into
rate limited functions.
this._updateRoomMembers();
},

// rate limited because a power level change will emit an event for every
// member in the room.
_updateRoomMembers: new rate_limited_func(function() {
// a member state changed in this room, refresh the tab complete list
// a member state changed in this room
// refresh, the conf call notification state
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/,//

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise

@richvdh richvdh assigned dbkr and unassigned richvdh Oct 26, 2016
@dbkr dbkr merged commit 8395717 into develop Oct 26, 2016
@richvdh richvdh deleted the dbkr/fix_spin_on_join branch February 15, 2017 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants