[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:
@@ -261,6 +261,7 @@ const ThreadItemAnchorInner = memo(function ThreadItemAnchorInner({
|
||||
langs: record.langs,
|
||||
},
|
||||
onPostSuccess: onPostSuccess,
|
||||
logContext: 'PostReply',
|
||||
})
|
||||
|
||||
if (postSource) {
|
||||
|
||||
@@ -237,6 +237,7 @@ const ThreadItemPostInner = memo(function ThreadItemPostInner({
|
||||
langs: post.record.langs,
|
||||
},
|
||||
onPostSuccess: onPostSuccess,
|
||||
logContext: 'PostReply',
|
||||
})
|
||||
}, [openComposer, post, record, onPostSuccess, moderation])
|
||||
|
||||
|
||||
@@ -302,6 +302,7 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
|
||||
langs: post.record.langs,
|
||||
},
|
||||
onPostSuccess: onPostSuccess,
|
||||
logContext: 'PostReply',
|
||||
})
|
||||
}, [openComposer, post, record, onPostSuccess, moderation])
|
||||
|
||||
|
||||
@@ -125,6 +125,7 @@ export function PostThread({uri}: {uri: string}) {
|
||||
langs: post.record.langs,
|
||||
},
|
||||
onPostSuccess: optimisticOnPostReply,
|
||||
logContext: 'PostReply',
|
||||
})
|
||||
|
||||
if (anchorPostSource) {
|
||||
|
||||
@@ -13,8 +13,10 @@ import {useOpenComposer} from '#/lib/hooks/useOpenComposer'
|
||||
import {usePalette} from '#/lib/hooks/usePalette'
|
||||
import {useSetTitle} from '#/lib/hooks/useSetTitle'
|
||||
import {ComposeIcon2} from '#/lib/icons'
|
||||
import {type CommonNavigatorParams} from '#/lib/routes/types'
|
||||
import {type NavigationProp} from '#/lib/routes/types'
|
||||
import {
|
||||
type CommonNavigatorParams,
|
||||
type NavigationProp,
|
||||
} from '#/lib/routes/types'
|
||||
import {makeRecordUri} from '#/lib/strings/url-helpers'
|
||||
import {s} from '#/lib/styles'
|
||||
import {listenSoftReset} from '#/state/events'
|
||||
@@ -236,7 +238,7 @@ export function ProfileFeedScreenInner({
|
||||
{hasSession && (
|
||||
<FAB
|
||||
testID="composeFAB"
|
||||
onPress={() => openComposer({})}
|
||||
onPress={() => openComposer({logContext: 'Fab'})}
|
||||
icon={
|
||||
<ComposeIcon2
|
||||
strokeWidth={1.5}
|
||||
|
||||
@@ -234,7 +234,7 @@ function ProfileListScreenLoaded({
|
||||
</PagerWithHeader>
|
||||
<FAB
|
||||
testID="composeFAB"
|
||||
onPress={() => openComposer({})}
|
||||
onPress={() => openComposer({logContext: 'Fab'})}
|
||||
icon={
|
||||
<ComposeIcon2
|
||||
strokeWidth={1.5}
|
||||
@@ -272,7 +272,7 @@ function ProfileListScreenLoaded({
|
||||
/>
|
||||
<FAB
|
||||
testID="composeFAB"
|
||||
onPress={() => openComposer({})}
|
||||
onPress={() => openComposer({logContext: 'Fab'})}
|
||||
icon={
|
||||
<ComposeIcon2
|
||||
strokeWidth={1.5}
|
||||
|
||||
@@ -777,6 +777,7 @@ function Overlay({
|
||||
embed: post.embed,
|
||||
langs: record?.langs,
|
||||
},
|
||||
logContext: 'PostReply',
|
||||
})
|
||||
}, [openComposer, post, record])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user