diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-12-11 15:11:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 15:11:36 -0800 |
commit | 3592f6f50b98c6bc81ebbf50f11f85df23376e53 (patch) | |
tree | bf1d3a8351e04e0a489732da6e7322c3655c5346 /src/view/screens/PostThread.tsx | |
parent | 9a59525b7313380507173984fd94fc92cb8c8709 (diff) | |
download | voidsky-3592f6f50b98c6bc81ebbf50f11f85df23376e53.tar.zst |
Hide the mobile reply control if outside the threadgate (#2177)
Diffstat (limited to 'src/view/screens/PostThread.tsx')
-rw-r--r-- | src/view/screens/PostThread.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/screens/PostThread.tsx b/src/view/screens/PostThread.tsx index 4b1f51748..8e9e399f5 100644 --- a/src/view/screens/PostThread.tsx +++ b/src/view/screens/PostThread.tsx @@ -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, |