Skip to content

Commit d12ca92

Browse files
committed
Avoid double updating: setting the state will cause a re-render so forcing an update is redundant. Also bump js sdk dep to newest to match vector.
1 parent 030124a commit d12ca92

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"flux": "^2.0.3",
2525
"glob": "^5.0.14",
2626
"linkifyjs": "^2.0.0-beta.4",
27-
"matrix-js-sdk": "^0.2.1",
27+
"matrix-js-sdk": "^0.2.2",
2828
"optimist": "^0.6.1",
2929
"q": "^1.4.1",
3030
"react": "^0.13.3",

‎src/controllers/organisms/MemberList.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,6 @@ module.exports = {
7575

7676
if (tile) {
7777
self._updateList(); // reorder the membership list
78-
self.forceUpdate(); // FIXME: is the a more efficient way of reordering with react?
79-
// XXX: do we even need to do this, or is it done by the main list?
80-
tile.forceUpdate();
8178
}
8279
}
8380
// FIXME: we should probably also reset 'lastActiveAgo' to zero whenever

0 commit comments

Comments
 (0)