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

Feature Request: message & media retention #3330

Open
matrixbot opened this issue Nov 2, 2024 · 4 comments
Open

Feature Request: message & media retention #3330

matrixbot opened this issue Nov 2, 2024 · 4 comments

Comments

@matrixbot
Copy link
Collaborator

This issue was originally created by @Kimiblock at matrix-org/dendrite#3330.

Description:

Similar to https://github.com/element-hq/synapse, delete messages & medias from the database and media repo if contents weren't accessed in a configurable amount of time.

For reference: Synapse config manual 1 2

This can greatly benefit use cases with limited disk space, such as Dendrite on VPS.

@matrixbot
Copy link
Collaborator Author

This comment was originally posted by @spaetz at matrix-org/dendrite#3330 (comment).

At the expense if self-promoting myself excessively: media retention kind if got implemented through a 3rd party tool (https://gitlab.com/sspaeth/cleanmedia).

If one needs a more finegrained policy, the dedicated media repository server is probably better suited which can be plugged into any server.

dendrite knows nothing about which media was posted in which room and when it was accessed last. So adding a rentention policy into the server is a lot of work.

Nothing of the above is about message retention though.

@matrixbot
Copy link
Collaborator Author

This comment was originally posted by @Kimiblock at matrix-org/dendrite#3330 (comment).

Well… the intention of cleaning media not accessed in a certain amount of time is to preserve frequently used (and probably important) files, such as user avatars and sticker packs

@matrixbot
Copy link
Collaborator Author

This comment was originally posted by @Kimiblock at matrix-org/dendrite#3330 (comment).

After a bit of digging, it turns out that MMR does support media retention and made a handy script https://github.com/Kimiblock/MMR-retention.

Not sure whether or not to close this issue though… as this still requires setting up MMR and Redis.

@matrixbot
Copy link
Collaborator Author

This comment was originally posted by @Dreamsorcerer at matrix-org/dendrite#3330 (comment).

I'm more interested in the message retention, so let's atleast keep it open for that.

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

No branches or pull requests

1 participant