fix: clear IndexedDB cache after deleting inbox

This commit is contained in:
Shivam Mishra
2026-02-13 16:12:31 +05:30
parent abb5a4c4d8
commit ff5440173c
@@ -324,6 +324,8 @@ export const actions = {
try {
await InboxesAPI.delete(inboxId);
commit(types.default.DELETE_INBOXES, inboxId);
// Clear IndexedDB so stale inbox data isn't served on page refresh
InboxesAPI.clearDataInCache();
commit(types.default.SET_INBOXES_UI_FLAG, { isDeleting: false });
} catch (error) {
commit(types.default.SET_INBOXES_UI_FLAG, { isDeleting: false });