about summary refs log tree commit diff
path: root/src/screens
diff options
context:
space:
mode:
authorElijah Seed-Arita <elijaharita@gmail.com>2025-08-15 06:16:13 -0700
committerGitHub <noreply@github.com>2025-08-15 06:16:13 -0700
commit5ca665467e9cbedd78f21df76db8cfde8eaa66b4 (patch)
treeed5ac7602b6d2904b49a22ac0d182bd7154cc756 /src/screens
parent4e0be91cffa15711eaa3116e01d761dd9a0a749b (diff)
downloadvoidsky-5ca665467e9cbedd78f21df76db8cfde8eaa66b4.tar.zst
feat: use OP's language as recommendation when replying (#8832)
* feat: use OP's language as recommendation when replying

* fix: address nits
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/PostThread/components/ThreadItemAnchor.tsx1
-rw-r--r--src/screens/PostThread/components/ThreadItemPost.tsx1
-rw-r--r--src/screens/PostThread/components/ThreadItemTreePost.tsx1
-rw-r--r--src/screens/PostThread/index.tsx1
-rw-r--r--src/screens/VideoFeed/index.tsx1
5 files changed, 5 insertions, 0 deletions
diff --git a/src/screens/PostThread/components/ThreadItemAnchor.tsx b/src/screens/PostThread/components/ThreadItemAnchor.tsx
index 39e84d383..fc1f1caeb 100644
--- a/src/screens/PostThread/components/ThreadItemAnchor.tsx
+++ b/src/screens/PostThread/components/ThreadItemAnchor.tsx
@@ -254,6 +254,7 @@ const ThreadItemAnchorInner = memo(function ThreadItemAnchorInner({
         author: post.author,
         embed: post.embed,
         moderation,
+        langs: record.langs,
       },
       onPostSuccess: onPostSuccess,
     })
diff --git a/src/screens/PostThread/components/ThreadItemPost.tsx b/src/screens/PostThread/components/ThreadItemPost.tsx
index 4337397f8..98520f16e 100644
--- a/src/screens/PostThread/components/ThreadItemPost.tsx
+++ b/src/screens/PostThread/components/ThreadItemPost.tsx
@@ -234,6 +234,7 @@ const ThreadItemPostInner = memo(function ThreadItemPostInner({
         author: post.author,
         embed: post.embed,
         moderation,
+        langs: post.record.langs,
       },
       onPostSuccess: onPostSuccess,
     })
diff --git a/src/screens/PostThread/components/ThreadItemTreePost.tsx b/src/screens/PostThread/components/ThreadItemTreePost.tsx
index 31517a40f..b009695a9 100644
--- a/src/screens/PostThread/components/ThreadItemTreePost.tsx
+++ b/src/screens/PostThread/components/ThreadItemTreePost.tsx
@@ -298,6 +298,7 @@ const ThreadItemTreePostInner = memo(function ThreadItemTreePostInner({
         author: post.author,
         embed: post.embed,
         moderation,
+        langs: post.record.langs,
       },
       onPostSuccess: onPostSuccess,
     })
diff --git a/src/screens/PostThread/index.tsx b/src/screens/PostThread/index.tsx
index f6ab554b6..f91daf54b 100644
--- a/src/screens/PostThread/index.tsx
+++ b/src/screens/PostThread/index.tsx
@@ -91,6 +91,7 @@ export function PostThread({uri}: {uri: string}) {
         author: post.author,
         embed: post.embed,
         moderation: anchor.moderation,
+        langs: post.record.langs,
       },
       onPostSuccess: optimisticOnPostReply,
     })
diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx
index 495b3bc62..b53593010 100644
--- a/src/screens/VideoFeed/index.tsx
+++ b/src/screens/VideoFeed/index.tsx
@@ -753,6 +753,7 @@ function Overlay({
         text: record?.text || '',
         author: post.author,
         embed: post.embed,
+        langs: record?.langs,
       },
     })
   }, [openComposer, post, record])