about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThread.tsx
diff options
context:
space:
mode:
authorAnsh Nanda <anshnanda10@gmail.com>2023-08-28 17:49:14 -0700
committerAnsh Nanda <anshnanda10@gmail.com>2023-08-28 17:49:14 -0700
commitb38629b9b55de71b8e01978c869269b88584834e (patch)
tree4c8eea8ff26f0440be3628c7bbe58b5c11fd6584 /src/view/com/post-thread/PostThread.tsx
parentb2dd4ea0f5c2913ad1ca71755913855b7ac0a021 (diff)
parente2f0770b88b24f44d066493e5e39f689feb46915 (diff)
downloadvoidsky-b38629b9b55de71b8e01978c869269b88584834e.tar.zst
Merge branch 'main' into ansh/app-812-add-custom-feed-discovery-to-onboarding
Diffstat (limited to 'src/view/com/post-thread/PostThread.tsx')
-rw-r--r--src/view/com/post-thread/PostThread.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThread.tsx b/src/view/com/post-thread/PostThread.tsx
index e3dd2cf1d..3e951dbf0 100644
--- a/src/view/com/post-thread/PostThread.tsx
+++ b/src/view/com/post-thread/PostThread.tsx
@@ -1,4 +1,5 @@
 import React, {useRef} from 'react'
+import {runInAction} from 'mobx'
 import {observer} from 'mobx-react-lite'
 import {
   ActivityIndicator,
@@ -361,7 +362,9 @@ function* flattenThread(
       }
     }
   } else if (!isAscending && !post.parent && post.post.replyCount) {
-    post._hasMore = true
+    runInAction(() => {
+      post._hasMore = true
+    })
   }
 }