about summary refs log tree commit diff
path: root/src/view/com/composer/ComposerReplyTo.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-04-26 22:31:07 -0700
committerGitHub <noreply@github.com>2024-04-27 06:31:07 +0100
commit7eb1444f2c82cd25a77445b82178b7299e8452c7 (patch)
treec160dcafad17ec148f3d0e9b5b03cbf326255821 /src/view/com/composer/ComposerReplyTo.tsx
parentce85375c856549371e1e561e21bb5932baca8ea6 (diff)
downloadvoidsky-7eb1444f2c82cd25a77445b82178b7299e8452c7.tar.zst
remove precacheThreadPostProfiles (#3729)
* remove `precacheThreadPostProfiles`

* add `displayName` to `PreviewableUserAvatar`

* memo

* use `precacheProfile`

* pass `profile` directly to `PreviewableUserAvatar`

* update the `UserAvatar`'s props

* remove feed cache

* one more spot

* rm unused queryClient

* Don't call fn unnecessarily

* Preload for display name too

* try notification item

* add to feeditem

* and finally, precache for post threads

* timestamp

* Fix

* onBeforePress

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/view/com/composer/ComposerReplyTo.tsx')
-rw-r--r--src/view/com/composer/ComposerReplyTo.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/view/com/composer/ComposerReplyTo.tsx b/src/view/com/composer/ComposerReplyTo.tsx
index 24a2373f5..7dc17fd4a 100644
--- a/src/view/com/composer/ComposerReplyTo.tsx
+++ b/src/view/com/composer/ComposerReplyTo.tsx
@@ -86,9 +86,7 @@ export function ComposerReplyTo({replyTo}: {replyTo: ComposerOptsPostRef}) {
       )}>
       <PreviewableUserAvatar
         size={50}
-        did={replyTo.author.did}
-        handle={replyTo.author.handle}
-        avatar={replyTo.author.avatar}
+        profile={replyTo.author}
         moderation={replyTo.moderation?.ui('avatar')}
         type={replyTo.author.associated?.labeler ? 'labeler' : 'user'}
       />