Skip to content

Delete encrypted messages from the server in single-device mode immediately#8283

Merged
link2xt merged 5 commits into
mainfrom
link2xt/delete-encrypted-messages-single-device
May 29, 2026
Merged

Delete encrypted messages from the server in single-device mode immediately#8283
link2xt merged 5 commits into
mainfrom
link2xt/delete-encrypted-messages-single-device

Conversation

@link2xt
Copy link
Copy Markdown
Collaborator

@link2xt link2xt commented May 28, 2026

This is a partial replacement for removed delete_server_after. Users of non-chatmail servers with a single device will not run out of space easily this way as long as they don't disable force_encryption and only receive encrypted messages.

Closes #8277

@link2xt link2xt force-pushed the link2xt/delete-encrypted-messages-single-device branch from 25f21c2 to 1c20763 Compare May 28, 2026 13:24
@link2xt link2xt changed the title Delete encrypted messages in single-device mode immediately Delete encrypted messages from the server in single-device mode immediately May 28, 2026
Copy link
Copy Markdown
Collaborator

@adbenitez adbenitez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code lgtm

Comment thread src/ephemeral.rs
Comment on lines +733 to +734
AND ((ephemeral_timestamp!=0 AND ephemeral_timestamp<=?2) OR
(param GLOB '*\nc=1*' OR param GLOB 'c=1*'))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to be always true, we don't send pre-messages for unencrypted messages. But it's fine to leave this condition just in case

@link2xt link2xt merged commit dfea8b0 into main May 29, 2026
56 of 57 checks passed
@link2xt link2xt deleted the link2xt/delete-encrypted-messages-single-device branch May 29, 2026 08:37
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

Successfully merging this pull request may close these issues.

nauta.cu has very few storage and issues with message deletion

3 participants