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

Fix showing deleted comments #1303

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

micahmo
Copy link
Member

@micahmo micahmo commented Apr 14, 2024

Pull Request Description

This PR fixes an issue where the contents of deleted comments can appear in some places (i.e., user profile). The cleaning code has been applied directly to the CommentContent widget so it automatically gets applied everywhere (rather than having to remember to do it in every different type of bloc).

While doing some refactoring, I came across this widget which does not appear to be used anywhere. Is it safe to deleted?

https://github.com/thunder-app/thunder/blob/develop/lib/user/widgets/comment_card.dart

Issue Being Fixed

Issue Number: N/A

Screenshots / Recordings

Before

comment-before.mp4

After

comment-after.mp4

Checklist

  • Did you update CHANGELOG.md?
  • Did you use localized strings where applicable?
  • Did you add semanticLabels where applicable for accessibility?

@hjiangsu
Copy link
Member

Is it safe to deleted?

It looks like we can delete it - I'm assuming this was left over from the comment refactor a while back! Nice catch 😄

Copy link
Member

@hjiangsu hjiangsu left a comment

Choose a reason for hiding this comment

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

LGTM!

@micahmo
Copy link
Member Author

micahmo commented Apr 16, 2024

Ok deleted!

@hjiangsu hjiangsu merged commit b7eff47 into thunder-app:develop Apr 16, 2024
1 check passed
@micahmo micahmo deleted the fix/showing-deleted-comments branch April 16, 2024 16:07
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