fix: clear IndexedDB cache after deleting inbox
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user