From 88c868dd808d204fc29deb162609de984745b951 Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Mon, 28 Nov 2022 16:37:39 -0600
Subject: Improve handling of deleted posts

---
 src/view/com/post-thread/PostThreadItem.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'src/view/com/post-thread/PostThreadItem.tsx')

diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index 85c241ce4..d08ca3e4a 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -88,6 +88,15 @@ export const PostThreadItem = observer(function PostThreadItem({
     )
   }
 
+  if (deleted) {
+    return (
+      <View style={[styles.outer, s.p20, s.flexRow]}>
+        <FontAwesomeIcon icon={['far', 'trash-can']} style={[s.gray4]} />
+        <Text style={[s.gray5, s.ml10]}>This post has been deleted.</Text>
+      </View>
+    )
+  }
+
   if (item._isHighlightedPost) {
     return (
       <>
-- 
cgit 1.4.1

