mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Don't re-render after each /sync call
This commit is contained in:
parent
5e02522685
commit
0f62388d3c
@ -145,7 +145,10 @@ module.exports = React.createClass({
|
||||
}
|
||||
},
|
||||
|
||||
onSyncStateChange: function(state) {
|
||||
onSyncStateChange: function(state, prevState) {
|
||||
if (state === "SYNCING" && prevState === "SYNCING") {
|
||||
return;
|
||||
}
|
||||
this.setState({
|
||||
syncState: state
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user