-
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
[🐴] Handle deleted accounts, restructure ChatListItem #4114
Conversation
Your Render PR Server URL is https://social-app-pr-4114.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cp5mou0cmk4c738rf4lg. |
|
* origin/main: Update French localization (#4113) Update Japanese translations (#3886) Update pt-BR localization to latest version (#4009) Update zh-CN translations (#3932) Update zh-TW translations (#4025) Update Korean localization (#4030) Update catalan messages.po (#4079) Update Spanish Localization (#4105) Allow removal of feeds that fail to load (#4121) [🐴] Make message input layout resizing synchronous (#4123) [🐴] Adjust content height whenever the emoji picker keyboard is opened or closed (#4120) Conditionally set chat declaration (#4122) [🐴] Fix load state for disabled chats (#4119) Bump api sdk (#4118) [🐴] Switch back to encouraging users to report messages (#4117) convo button skeleton (#4115) [🐴] Screenreader accessibility actions for individual chat items (#4116) [🐴] DM button on profile (#4097) [🐴] Don't retry sends (#4111)
onPress={ | ||
isDeletedAccount | ||
? e => { | ||
e.preventDefault() | ||
return false | ||
} | ||
: undefined | ||
} |
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.
Cool for now, but we should make this a prop on our new link maybe, I've had to do this a few times before. Just something for later.
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.
Nice, looks good to go now! Tested with screenreader and actions still work 👍
Review without whitespace: https://github.com/bluesky-social/social-app/pull/4114/files?diff=split&w=1
Deleted accounts delete all messages for both parties, so there's no need to load the Convo screen. This PR disables that link.
This PR also converts to a
Link
for better a11y, and restructures theChatListItem
so that the context menu is outside theLink
for better a11y. It should also fix some alignment issues we had with deleted accounts.