Skip to content
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

Merged
merged 4 commits into from
May 5, 2024
Merged

[Clipclops] Delete message in dialog #3849

merged 4 commits into from
May 5, 2024

Conversation

haileyok
Copy link
Contributor

@haileyok haileyok commented May 3, 2024

No description provided.

Copy link

render bot commented May 3, 2024

Copy link

github-actions bot commented May 3, 2024

Old size New size Diff
6.86 MB 6.86 MB 369 B (0.01%)

}, [])
if (chat.status !== ConvoStatus.Ready) return

chat.deleteMessage(message.id)
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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.

@mozzius mozzius force-pushed the hailey/delete-copy branch from 234f0ed to 106e4eb Compare May 5, 2024 00:17
@mozzius mozzius changed the title [Clipclops] Delete message and copy message text in dialog [Clipclops] Delete message in dialog May 5, 2024
@mozzius
Copy link
Member

mozzius commented May 5, 2024

Rebased, I did the copy message text in a different PR

@mozzius mozzius requested a review from estrattonbailey May 5, 2024 00:57
@mozzius
Copy link
Member

mozzius commented May 5, 2024

Added a retry dialog

Copy link
Member

@mozzius mozzius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"looks good" - Hailey

@mozzius mozzius merged commit c4160c2 into main May 5, 2024
6 checks passed
@mozzius mozzius deleted the hailey/delete-copy branch May 5, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants