From 7225b0ba3dc00aaad6e81227ff18e0326cd6a638 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 29 Jan 2026 22:10:12 +0200 Subject: [PATCH] skip revoking objecturls until the composer is completely closed --- src/view/com/composer/drafts/DraftsListDialog.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/view/com/composer/drafts/DraftsListDialog.tsx b/src/view/com/composer/drafts/DraftsListDialog.tsx index a09517d3bd..04feb0960c 100644 --- a/src/view/com/composer/drafts/DraftsListDialog.tsx +++ b/src/view/com/composer/drafts/DraftsListDialog.tsx @@ -14,7 +14,6 @@ import {IS_NATIVE} from '#/env' import {DraftItem} from './DraftItem' import {useDeleteDraftMutation, useDraftsQuery} from './state/queries' import {type DraftSummary} from './state/schema' -import {revokeAllMediaUrls} from './state/storage' export function DraftsListDialog({ control, @@ -37,12 +36,6 @@ export function DraftsListDialog({ const handleSelectDraft = useCallback( (summary: DraftSummary) => { control.close(() => { - // Revoke preview URLs - // It would be neater to do it in the `onClose` callback - // on the dialog itself, but this would wipe out the new ones - // that will be created by `onSelectDraft` - // ndb: if we miss any, it'll be handled by the composer closing - revokeAllMediaUrls() onSelectDraft(summary) }) }, @@ -60,11 +53,7 @@ export function DraftsListDialog({ () => (