Apply quote-context fix to single-image branch too
This commit is contained in:
@@ -65,17 +65,14 @@ export function ImageEmbed({
|
|||||||
crop={
|
crop={
|
||||||
rest.viewContext === PostEmbedViewContext.ThreadHighlighted
|
rest.viewContext === PostEmbedViewContext.ThreadHighlighted
|
||||||
? 'none'
|
? 'none'
|
||||||
: rest.viewContext ===
|
: rest.isWithinQuote
|
||||||
PostEmbedViewContext.FeedEmbedRecordWithMedia
|
|
||||||
? 'square'
|
? 'square'
|
||||||
: 'constrained'
|
: 'constrained'
|
||||||
}
|
}
|
||||||
image={image}
|
image={image}
|
||||||
onPress={(containerRef, dims) => onPress(0, [containerRef], [dims])}
|
onPress={(containerRef, dims) => onPress(0, [containerRef], [dims])}
|
||||||
onPressIn={() => onPressIn(0)}
|
onPressIn={() => onPressIn(0)}
|
||||||
hideBadge={
|
hideBadge={rest.isWithinQuote}
|
||||||
rest.viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user