diff options
author | dan <dan.abramov@gmail.com> | 2024-10-24 20:41:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-24 20:41:50 +0100 |
commit | e8a53dcea84afc3b313037dbaf059c68121eb9ab (patch) | |
tree | 43593f5bb5ab852b6c61244167d5ead31c8ec125 /src/view/com/composer/Composer.tsx | |
parent | fa4cca11fedb78b31b7b606eafa74ebc17435f24 (diff) | |
download | voidsky-e8a53dcea84afc3b313037dbaf059c68121eb9ab.tar.zst |
Refactor post meta to return PostView (#5645)
Diffstat (limited to 'src/view/com/composer/Composer.tsx')
-rw-r--r-- | src/view/com/composer/Composer.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 126addd1c..88052addc 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -129,7 +129,6 @@ export const ComposePost = ({ replyTo, onPost, quote: initQuote, - quoteCount: initQuoteCount, mention: initMention, openEmojiPicker, text: initText, @@ -425,13 +424,13 @@ export const ComposePost = ({ emitPostCreated() } setLangPrefs.savePostLanguageToHistory() - if (initQuote && initQuoteCount !== undefined) { + if (initQuote) { // We want to wait for the quote count to update before we call `onPost`, which will refetch data whenAppViewReady(agent, initQuote.uri, res => { const thread = res.data.thread if ( AppBskyFeedDefs.isThreadViewPost(thread) && - thread.post.quoteCount !== initQuoteCount + thread.post.quoteCount !== initQuote.quoteCount ) { onPost?.(postUri) return true @@ -463,7 +462,6 @@ export const ComposePost = ({ onPost, quote, initQuote, - initQuoteCount, replyTo, richtext.text, setLangPrefs, |