Add some future-proofness

This commit is contained in:
Eric Bailey
2024-09-03 20:48:11 -05:00
parent f9dae01118
commit d8bd4ec5c4
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ let PostThreadItemLoaded = ({
<PostEmbeds
embed={post.embed}
moderation={moderation}
isHighlightedThreadItem
contextView="thread-highlighted"
/>
</View>
)}
+3 -3
View File
@@ -50,14 +50,14 @@ export function PostEmbeds({
onOpen,
style,
allowNestedQuotes,
isHighlightedThreadItem,
contextView,
}: {
embed?: Embed
moderation?: ModerationDecision
onOpen?: () => void
style?: StyleProp<ViewStyle>
allowNestedQuotes?: boolean
isHighlightedThreadItem?: boolean
contextView?: 'thread-highlighted'
}) {
const {openLightbox} = useLightboxControls()
const largeAltBadge = useLargeAltBadgeEnabled()
@@ -131,7 +131,7 @@ export function PostEmbeds({
<ContentHider modui={moderation?.ui('contentMedia')}>
<View style={[styles.container, style]}>
<AutoSizedImage
disableCrop={isHighlightedThreadItem}
disableCrop={contextView === 'thread-highlighted'}
image={image}
onPress={() => _openLightbox(0)}
onPressIn={() => onPressIn(0)}>