mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Unbreak everything (JS SDK had breaking API change)
This commit is contained in:
parent
3fec3a7326
commit
a7c6a923f0
@ -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
Block a user