Media deletion Feature#192
Open
tototomate123 wants to merge 17 commits intomatrix-construct:dashadevfrom
Open
Conversation
…tation for sending messages to users if they delete a message containing media
… media, added comments
Member
|
This is going to be amazing. I'm here at your service 🫡 |
Contributor
Author
|
Aww, thank you! You're the best 💜 if I need something I'll message you :) |
tototomate123
commented
Oct 21, 2025
Contributor
Author
There was a problem hiding this comment.
I should be able to remove that clippy rule again since we increased that in the clippy.toml
Member
|
I've had ongoing discussions with @tototomate123 and we have decided this feature and the underlying infrastructure is not quite ready for the impending release. As a consequence we will not even be calling the next release 1.5.0. Development will resume at the beginning of the next cycle instead. |
|
As for now: is there any way to cleanup stale media of already deleted messages? 🙌 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a media retention and cleanup system with full encrypted room support, featuring CBOR-based storage, a reaction-based UI, and automatic media lifecycle management.
PR is ready for review! Over the last 5 days, Ive replaced the background retention worker with an event-driven architecture that hooks directly into timeline events. When users delete messages containing media, the notifications they receive in their user rooms now include a ♻️ "save preference" option, that will always delete media for redacted messages in un- or encrypted chats, giving them immediate control over media cleanup.
All of this is configurable via the tuwunel configuration file.
Key Files
src/service/media/retention.rs- CBOR storage & retention logicsrc/service/media/mod.rs- Notifications & reactionssrc/service/userroom/mod.rs- User admin messagingsrc/service/rooms/timeline/append.rs- Event processing fixes