Don't spam logging
parent
a8d7810bfc
commit
a670a7e4c4
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue