mirror of https://github.com/vector-im/riot-web
Merge pull request #27 from matrix-org/kegan/syncing
Unbreak everything (JS SDK had breaking API change)pull/21833/head
commit
f5116fe026
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue