From ff5440173cb1e22e4915c4622cc6b246b5e26f95 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Fri, 13 Feb 2026 16:12:31 +0530 Subject: [PATCH] fix: clear IndexedDB cache after deleting inbox --- app/javascript/dashboard/store/modules/inboxes.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/dashboard/store/modules/inboxes.js b/app/javascript/dashboard/store/modules/inboxes.js index c24a90599..2ebbb4da9 100644 --- a/app/javascript/dashboard/store/modules/inboxes.js +++ b/app/javascript/dashboard/store/modules/inboxes.js @@ -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 });