fix: await IndexedDB cache clear on inbox deletion

This commit is contained in:
Shivam Mishra
2026-02-17 13:37:30 +05:30
parent ff5440173c
commit 316d116cec
2 changed files with 2 additions and 2 deletions
@@ -325,7 +325,7 @@ export const actions = {
await InboxesAPI.delete(inboxId);
commit(types.default.DELETE_INBOXES, inboxId);
// Clear IndexedDB so stale inbox data isn't served on page refresh
InboxesAPI.clearDataInCache();
await InboxesAPI.clearDataInCache();
commit(types.default.SET_INBOXES_UI_FLAG, { isDeleting: false });
} catch (error) {
commit(types.default.SET_INBOXES_UI_FLAG, { isDeleting: false });