about summary refs log tree commit diff
path: root/src/screens/Profile/Sections/Feed.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-01-21 18:45:33 -0600
committerGitHub <noreply@github.com>2025-01-22 00:45:33 +0000
commit6538013484a42a3b92001725ec2602dab86eb939 (patch)
treee6a2377105482f9046865a6071a845cb9b31491b /src/screens/Profile/Sections/Feed.tsx
parent1403570a6a231099c35c977afe38f84349d92018 (diff)
downloadvoidsky-6538013484a42a3b92001725ec2602dab86eb939.tar.zst
Add videos tab to profile (#7517)
* Add videos tab to profile

* Modify sourceContext for author feeds

* Use actual typecast, better name for feedUri

* Make EOF conditional

* Clearer condition

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/screens/Profile/Sections/Feed.tsx')
-rw-r--r--src/screens/Profile/Sections/Feed.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/screens/Profile/Sections/Feed.tsx b/src/screens/Profile/Sections/Feed.tsx
index 0ad197f5f..3e3fe973e 100644
--- a/src/screens/Profile/Sections/Feed.tsx
+++ b/src/screens/Profile/Sections/Feed.tsx
@@ -45,6 +45,7 @@ export const ProfileFeedSection = React.forwardRef<
   const [hasNew, setHasNew] = React.useState(false)
   const [isScrolledDown, setIsScrolledDown] = React.useState(false)
   const shouldUseAdjustedNumToRender = feed.endsWith('posts_and_author_threads')
+  const isVideoFeed = isNative && feed.endsWith('posts_with_video')
   const adjustedInitialNumToRender = useInitialNumToRender({
     screenHeightOffset: headerHeight,
   })
@@ -84,11 +85,12 @@ export const ProfileFeedSection = React.forwardRef<
         renderEmptyState={renderPostsEmpty}
         headerOffset={headerHeight}
         progressViewOffset={ios(0)}
-        renderEndOfFeed={ProfileEndOfFeed}
+        renderEndOfFeed={isVideoFeed ? undefined : ProfileEndOfFeed}
         ignoreFilterFor={ignoreFilterFor}
         initialNumToRender={
           shouldUseAdjustedNumToRender ? adjustedInitialNumToRender : undefined
         }
+        isVideoFeed={isVideoFeed}
       />
       {(isScrolledDown || hasNew) && (
         <LoadLatestBtn