-
-
Notifications
You must be signed in to change notification settings - Fork 13
Don't render deleted messages #236
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
base: main
Are you sure you want to change the base?
Conversation
43d0317
to
5ace066
Compare
Nice! Could you create another screenshot to show the view before the messages are deleted? |
@ellisonbg it was already present in "Problem" section unless I misunderstand. I moved it to the "Proposed solution" section and added "Before this PR:" note just before the screenshot for more visibility. |
Clarification: I was hoping you could show the messages before the user hit the delete button to delete the messages in the first place. Looking for before and after the user hits delete, rather than only before and after the PR. |
@ellisonbg thank you for the clarification, updated screenshots based on it. |
Thanks @andrii-i for working on this. I think this is a matter of opinion, and agree that in the context of a conversation with an AI it doesn't make sense to keep this track. Since this PR doesn't actually remove the message from the shared document (only avoid displaying it), I would add a user setting for it. |
Thank you for looking into this @brichet. I agree that this is a matter of opinion, that both approaches have tradeoffs, and indeed believe that approach presented in this PR in the context of a conversation with an AI makes sense.
Would you be open to merging this PR and then following up with another PR later on the settings? Another way to deal with being able to retrieve messages could be be wiring up undo/redo so users can undo deleted messages to recover them. |
0d4ebbc
to
e6eac31
Compare
@andrii-i what I meant was not being able to retrieve the message (currently the content is deleted anyway and I think it's fine), but rather being able to know that message has been deleted. The current behavior looks fine for me. |
Problem
Currently when messages is deleted it is still rendered in UI as
(message deleted)
. It seems to not bring any useful information and increase visual clutter.Proposed solution
Do not render deleted messages.
Before this PR:
After this PR: