diff options
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r-- | src/view/com/post/Post.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index ac7d1cc55..a6c66d143 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -30,11 +30,13 @@ export const Post = observer(function Post({ uri, initView, showReplyLine, + hideError, style, }: { uri: string initView?: PostThreadViewModel showReplyLine?: boolean + hideError?: boolean style?: StyleProp<ViewStyle> }) { const pal = usePalette('default') @@ -70,6 +72,9 @@ export const Post = observer(function Post({ // error // = if (view.hasError || !view.thread || !view.thread?.postRecord) { + if (hideError) { + return <View /> + } return ( <View style={pal.view}> <Text>{view.error || 'Thread not found'}</Text> |