-
Notifications
You must be signed in to change notification settings - Fork 292
fix: regenerate image preview URL on image attachment removal when editing a message #2775
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
Conversation
|
Size Change: +136 B (+0.01%) Total Size: 1.09 MB
ℹ️ View Unchanged
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2775 +/- ##
==========================================
- Coverage 81.28% 81.25% -0.03%
==========================================
Files 479 479
Lines 9530 9532 +2
Branches 2217 2162 -55
==========================================
- Hits 7746 7745 -1
- Misses 1413 1679 +266
+ Partials 371 108 -263 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
🎉 This PR is included in version 13.2.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎯 Goal
Fixes #2773
🛠 Implementation details
The effect had a condition that imageElements array could not contain null in order to recalculate preview urls. That lead to the issue in scenario when images at the beginning of the attachment array were removed. The preview URL of removed attachment was assigned based on index to an attachment that moved to the place of the previously removed image.