[Drafts] Storage fixes (#9790)

* delete media from existsCache when deleting

* revoke media URLs

* skip revoking objecturls until the composer is completely closed

* [Drafts] Metrics (#9794)

* metrics for drafts

* Nit: format

* nit: use new util for clarity

* nit: use new util for clarity

---------

Co-authored-by: Eric Bailey <git@esb.lol>

---------

Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
Samuel Newman
2026-01-29 23:21:38 +02:00
committed by GitHub
parent 0babd0f475
commit 58f532a495
28 changed files with 258 additions and 29 deletions
+4 -3
View File
@@ -37,7 +37,7 @@ export function ComposerPrompt() {
const onPress = useCallback(() => {
ax.metric('composerPrompt:press', {})
openComposer({})
openComposer({logContext: 'Fab'})
}, [ax, openComposer])
const onPressImage = useCallback(async () => {
@@ -45,7 +45,7 @@ export function ComposerPrompt() {
// On web, open the composer with the gallery picker auto-opening
if (!IS_NATIVE) {
openComposer({openGallery: true})
openComposer({openGallery: true, logContext: 'Fab'})
return
}
@@ -83,7 +83,7 @@ export function ComposerPrompt() {
}))
if (imageUris.length > 0) {
openComposer({imageUris})
openComposer({imageUris, logContext: 'Fab'})
}
}
} catch (err: any) {
@@ -125,6 +125,7 @@ export function ComposerPrompt() {
openComposer({
imageUris: IS_NATIVE ? imageUris : undefined,
logContext: 'Fab',
})
} catch (err: any) {
if (!String(err).toLowerCase().includes('cancel')) {
+1 -1
View File
@@ -123,7 +123,7 @@ export function FeedPage({
}, [onSoftReset, isPageFocused])
const onPressCompose = useCallback(() => {
openComposer({})
openComposer({logContext: 'Fab'})
}, [openComposer])
const onPressLoadLatest = useCallback(() => {