fix: collapsible attachment with text duplicating the content#6956
fix: collapsible attachment with text duplicating the content#6956OtavioStasiak wants to merge 4 commits intodevelopfrom
Conversation
WalkthroughThese changes modify how collapsed attachments are handled in message quotes and add Storybook stories for testing collapsible attachments with text content. The Quote.tsx logic now prevents collapsed attachments from being classified as quotes through an early return guard. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
||
| if (file.collapsed) return false; | ||
|
|
||
| if (!file.color && !file.text && (file.image_url || file.audio_url || file.video_url || file.collapsed)) { |
There was a problem hiding this comment.
we can remove file.collapsed from here because we have added a check in line 14
Proposed changes
Fix collapsible attachment with text duplicating the content.
Issue(s)
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments
Summary by CodeRabbit
Bug Fixes
Tests