-
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
[Clipclops] Delete message in dialog #3849
Conversation
Your Render PR Server URL is https://social-app-pr-3849.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-coqjtj2cn0vc73fmfua0. |
|
src/components/dms/MessageMenu.tsx
Outdated
}, []) | ||
if (chat.status !== ConvoStatus.Ready) return | ||
|
||
chat.deleteMessage(message.id) |
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.
This can throw FYI. It optimistically removes the message immediately, but if it fails, it's re-inserted immediately too. My thinking is that we want to handle in situ and alert the user so they can retry right from the dialog.
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.
so delete message first and then close the dialog?
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.
Yeah could just wait for it to delete, show error if fails, then close
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.
Could consider other options for sure, but if someone wants to delete a message, we should make sure they know when it fails
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, sg. will think about it today.
234f0ed
to
106e4eb
Compare
Rebased, I did the copy message text in a different PR |
Added a retry dialog |
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.
"looks good" - Hailey
No description provided.