You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-01 09:58:03 +03:00
Don't re-render after each /sync call
This commit is contained in:
@@ -145,7 +145,10 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onSyncStateChange: function(state) {
|
onSyncStateChange: function(state, prevState) {
|
||||||
|
if (state === "SYNCING" && prevState === "SYNCING") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
syncState: state
|
syncState: state
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user