You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +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