-
Notifications
You must be signed in to change notification settings - Fork 11k
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: Thumbnails are not deleted on room deletion #34851
Conversation
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 9a8146a The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #34851 +/- ##
===========================================
- Coverage 59.35% 59.16% -0.20%
===========================================
Files 2819 2821 +2
Lines 67650 68045 +395
Branches 15022 15116 +94
===========================================
+ Hits 40157 40261 +104
- Misses 24678 24959 +281
- Partials 2815 2825 +10
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
Proposed changes (including videos or screenshots)
files
(array) field from messages instead of deprecatedfile
field when checking all uploads related to a message that should be deleted with it.Issue(s)
Steps to test or reproduce
Upload an image in a room, then delete the whole room.
Expected behavior: all uploads related to the uploaded image should be deleted after the room is deleted. Check the
rocketchat_uploads
collection to make sure both documents related to the image have been deleted (the image itself and the thumbnail).Current behavior: the image itself is deleted, but RC keeps the thumbnail in the
rocketchat_uploads
collection and in the selected storage type.Further comments
SUP-715