You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-09 10:22:46 +03:00
Informative logging given it won't be spammy
This commit is contained in:
@@ -83,6 +83,7 @@ IndexedDBStoreBackend.prototype = {
|
|||||||
* @return {Promise} Resolved when the database is cleared.
|
* @return {Promise} Resolved when the database is cleared.
|
||||||
*/
|
*/
|
||||||
clearDatabase: function() {
|
clearDatabase: function() {
|
||||||
|
console.log("Removing indexeddb instance: ", this._dbName);
|
||||||
return promiseifyRequest(this.indexedDB.deleteDatabase(this._dbName));
|
return promiseifyRequest(this.indexedDB.deleteDatabase(this._dbName));
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -297,7 +298,11 @@ IndexedDBStore.prototype.getSyncAccumulator = function() {
|
|||||||
*/
|
*/
|
||||||
IndexedDBStore.prototype.deleteAllData = function() {
|
IndexedDBStore.prototype.deleteAllData = function() {
|
||||||
MatrixInMemoryStore.prototype.deleteAllData.call(this);
|
MatrixInMemoryStore.prototype.deleteAllData.call(this);
|
||||||
this.backend.clearDatabase();
|
this.backend.clearDatabase().then(() => {
|
||||||
|
console.log("Deleted indexeddb data.");
|
||||||
|
}, (err) => {
|
||||||
|
console.error("Failed to delete indexeddb data: ", err);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user