-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Retention deleted messages keep displaying #28799
Comments
The server does not notify the client when a message is removed due to retention, nor the retention period in place on that specific server, the server could/should send redactions to inform the client when events are removed otherwise the client has no way of knowing. I suggest raising an issue on the server or spec. Element Android likely just doesn't cache things, I know Element X doesn't cache things at all. |
Can't you just check if the message can be found on the server, and if not, get rid of it on the client? |
So your suggestion is for every single event you'd have to call the API to query if it is still there? That'd add minutes to the launch time if you're in a lot of rooms or on a slow server... |
I should elaborate on my thought. What I meant above is to check whether the message is still there when the message gets loaded (for instance, upon opening a channel and scrolling upward). But now that I reconsider, it wouldn't solve the underlying issue of deleted messages still remaining on the device. I have two more ideas:
|
The cache held on the client is small, roughly ~20 messages per room, scrolling up fetches from the server so should already be respect retention.
For a channel it is, for the server it isn't.
Not one that is sent to the client according to the spec: https://spec.matrix.org/v1.13/client-server-api/ |
Makes sense now. Would it really be resource intensive then to check upon launch whether those ~20 exist?
I see
I see |
~20 * hundreds of rooms * thousands of clients and you end up with a very unhappy server due to the thundering herd effect https://en.wikipedia.org/wiki/Thundering_herd_problem every morning |
Fair enough |
Steps to reproduce
Prerequisites
Retention config:
Steps
Outcome
What did you expect?
I expected for all messages beyond the message retention period to be gone as it is on Element Android
What happened instead?
Some messages remain even beyond the retention period.
I presume this has something to do with the message cache (Security & Privacy > Encryption > Message search), however after resetting it, the messages still remained.
Operating system
Debian GNU/Linux 12
Application version
Element version: 1.11.89 Crypto version: Rust SDK 0.7.2 (2f872cf), Vodozemac 0.8.1
How did you install the app?
https://element.io/download APT repository
Homeserver
Synapse 1.121.1
Will you send logs?
No
The text was updated successfully, but these errors were encountered: