Don't spam logging

pull/21833/head
Kegan Dougal 2015-12-15 14:23:58 +00:00
parent a8d7810bfc
commit a670a7e4c4
1 changed files with 4 additions and 1 deletions

View File

@ -391,7 +391,10 @@ module.exports = React.createClass({
startMatrixClient: function() {
var cli = MatrixClientPeg.get();
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);
if (state !== "PREPARED") { return; }
self.sdkReady = true;