-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Expire ephemeral events #1319
Comments
This comment was originally posted by @DAlperin at matrix-org/dendrite#1319 (comment). I can try this. I have one architectural questions about the implementation: Dendrite currently has no system of scheduled workers that I know of (which is how synapse implements this). I can build a naive database backed worker implementation but let me know if anyone has some ideas of how to best do this. |
This comment was originally posted by @kegsay at matrix-org/dendrite#1319 (comment). Does this need a database backend at all though? Ephemeral are just that: short lived. We just want to sometimes drop them instead of always passing them through to the client I think? |
This comment was originally posted by @DAlperin at matrix-org/dendrite#1319 (comment). As I understand it from reading synapse, ephemeral events are just events that have a set time by which they will be redacted. Without backing it with a database we would have to check every time we send events to the client whether any of them have expired and then redact them which feels expensive. Besides we also need to inform clients that the event has expired (which to the client just means a normal redaction) |
This comment was originally posted by @DAlperin at matrix-org/dendrite#1319 (comment). Ah got it, this is a bit more involved than I expected. Here this the relevant section from the doc:
I think implementing just |
This comment was originally posted by @kegsay at matrix-org/dendrite#1319 (comment). Pleas gate any support for this behind a config flag for MSC2228. |
This comment was originally posted by @DAlperin at matrix-org/dendrite#1319 (comment). @kegsay Architecturally, do you think it's better to add an |
This comment was originally posted by @kegsay at matrix-org/dendrite#1319 (comment). Add an additional table please. Don't pollute the core tables with MSC extensions. The vast majority of events will not have an Bear in mind the following when implementing this:
|
This comment was originally posted by @kegsay at matrix-org/dendrite#1319 (comment). Still failing as of today. |
This issue was originally created by @kegsay at matrix-org/dendrite#1319.
Sytests:
The text was updated successfully, but these errors were encountered: