fix: await IndexedDB cache clear on inbox deletion
This commit is contained in:
@@ -87,7 +87,7 @@ class CacheEnabledApiClient extends ApiClient {
|
||||
async clearDataInCache() {
|
||||
try {
|
||||
await this.dataManager.initDb();
|
||||
this.dataManager.db.clear(this.cacheModelName);
|
||||
await this.dataManager.db.clear(this.cacheModelName);
|
||||
} catch {
|
||||
// Ignore error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user