You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-06-27 15:01:53 +03:00
Don't spam logging
This commit is contained in:
@ -391,7 +391,10 @@ module.exports = React.createClass({
|
|||||||
startMatrixClient: function() {
|
startMatrixClient: function() {
|
||||||
var cli = MatrixClientPeg.get();
|
var cli = MatrixClientPeg.get();
|
||||||
var self = this;
|
var self = this;
|
||||||
cli.on('sync', function(state) {
|
cli.on('sync', function(state, prevState) {
|
||||||
|
if (state === "SYNCING" && prevState === "SYNCING") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
console.log("MatrixClient sync state => %s", state);
|
console.log("MatrixClient sync state => %s", state);
|
||||||
if (state !== "PREPARED") { return; }
|
if (state !== "PREPARED") { return; }
|
||||||
self.sdkReady = true;
|
self.sdkReady = true;
|
||||||
|
Reference in New Issue
Block a user