diff --git a/src/controllers/pages/MatrixChat.js b/src/controllers/pages/MatrixChat.js index a38ba8e4e7..57344b5a69 100644 --- a/src/controllers/pages/MatrixChat.js +++ b/src/controllers/pages/MatrixChat.js @@ -295,7 +295,8 @@ module.exports = { var Notifier = sdk.getComponent('organisms.Notifier'); var cli = MatrixClientPeg.get(); var self = this; - cli.on('syncComplete', function() { + cli.on('sync', function(state) { + if (self.sdkReady || state !== "PREPARED") { return; } self.sdkReady = true; if (self.starting_room_alias) {