about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThread.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-10-04 11:33:32 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-10-04 11:33:32 -0500
commit236c9080587ad9e63fa3330d2567640ea2f64fb4 (patch)
treea40bc4b31ab5594b8b07ebcf7b1e69c93842a6a5 /src/view/com/post-thread/PostThread.tsx
parent0aaa406b179e366e6a527f052379184787440b42 (diff)
downloadvoidsky-236c9080587ad9e63fa3330d2567640ea2f64fb4.tar.zst
Update the view after a post is created
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r--src/view/com/post-thread/PostThread.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index 5bd379fed..8a0ddab5d 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -70,7 +70,11 @@ export const PostThread = observer(function PostThread({uri}: {uri: string}) {
   // =
   const posts = view.thread ? Array.from(flattenThread(view.thread)) : []
   const renderItem = ({item}: {item: PostThreadViewPostModel}) => (
-    <PostThreadItem item={item} onPressShare={onPressShare} />
+    <PostThreadItem
+      item={item}
+      onPressShare={onPressShare}
+      onPostReply={onRefresh}
+    />
   )
   return (
     <FlatList