You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
Smush connect() and init() together
This commit is contained in:
@@ -133,13 +133,15 @@ LocalIndexedDBStoreBackend.prototype = {
|
||||
this.db.onversionchange = () => {
|
||||
this.db.close();
|
||||
};
|
||||
|
||||
return this._init();
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Having connected, load initial data from the database and prepare for use
|
||||
*/
|
||||
init: function() {
|
||||
_init: function() {
|
||||
return q.all([
|
||||
this._loadAccountData(),
|
||||
this._loadSyncData(),
|
||||
|
||||
Reference in New Issue
Block a user