You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Comments
This commit is contained in:
@@ -79,8 +79,11 @@ class MatrixClientPeg {
|
||||
console.log("Loading history from IndexedDB.");
|
||||
promise = this.matrixClient.store.startup();
|
||||
}
|
||||
// log any errors when starting up the database
|
||||
promise.catch((err) => { console.error(err); });
|
||||
|
||||
// regardless of errors, start the client. If we did error out, we'll
|
||||
// just end up doing a full initial /sync.
|
||||
promise.finally(() => {
|
||||
this.get().startClient(opts);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user