-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix undefined block #4378
Fix undefined block #4378
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! Needs a small tweak, otherwise should be good pending other team feedback.
src/view/com/posts/FeedItem.tsx
Outdated
@@ -196,6 +196,12 @@ let FeedItemInner = ({ | |||
}, | |||
] | |||
|
|||
let blockedParentAuthor: AppBskyActorDefs.ProfileViewBasic = { | |||
did: '', | |||
displayName: '[user blocked you]', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I block this user instead of them blocking me, this text might be confusing. Should probably do something more generic like [blocked user]
and then checking for all forms of blocks on the viewer state when displaying it:
blockedBy?: boolean
blocking?: string
blockingByList?: AppBskyGraphDefs.ListViewBasic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm home in 30m and will adjust this then :)
@estrattonbailey Thanks for letting me know! I didn't know |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Sorry for the delay. Gonna merge this into a branch and tweak it based on team thoughts and then we'll get it in. Thanks again!
* Fix undefined block (#4378) * Fix undefined block * Changing text and handling all blocks. * Tweaks * Hide follow button in hover card if user blocked --------- Co-authored-by: Josh <hi@oracularhades.com>
* Fix undefined block (#4378) * Fix undefined block * Changing text and handling all blocks. * Tweaks * Update copy, make non-interactive * Remove console * Clarify logic * Pass through parent blocked state for 3p blocks * Better translation --------- Co-authored-by: Josh <hi@oracularhades.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
This fixes #4322
Screen.Recordingundefined-block-fix.mp4