Hide the mobile reply control if outside the threadgate (#2177)
This commit is contained in:
parent
9a59525b73
commit
3592f6f50b
2 changed files with 11 additions and 2 deletions
|
@ -37,6 +37,7 @@ export function PostThreadScreen({route}: Props) {
|
|||
const {isMobile} = useWebMediaQueries()
|
||||
const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey)
|
||||
const {data: resolvedUri, error: uriError} = useResolveUriQuery(uri)
|
||||
const [canReply, setCanReply] = React.useState(false)
|
||||
|
||||
useFocusEffect(
|
||||
React.useCallback(() => {
|
||||
|
@ -84,10 +85,11 @@ export function PostThreadScreen({route}: Props) {
|
|||
<PostThreadComponent
|
||||
uri={resolvedUri?.uri}
|
||||
onPressReply={onPressReply}
|
||||
onCanReply={setCanReply}
|
||||
/>
|
||||
)}
|
||||
</View>
|
||||
{isMobile && (
|
||||
{isMobile && canReply && (
|
||||
<Animated.View
|
||||
style={[
|
||||
styles.prompt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue