Skip to content

fix: Don't receive message if a deletion request was received before (#8143)#8158

Merged
iequidoo merged 2 commits into
mainfrom
iequidoo/del-request-reordering
Apr 26, 2026
Merged

fix: Don't receive message if a deletion request was received before (#8143)#8158
iequidoo merged 2 commits into
mainfrom
iequidoo/del-request-reordering

Conversation

@iequidoo
Copy link
Copy Markdown
Collaborator

@iequidoo iequidoo commented Apr 23, 2026

There's no check for from_id so another group member can delete the message, but this can only happen in case of message reordering and the problem already exists for usual messages, so we may ignore it and overall a group represents a scope of trust.
Fix #8143

@iequidoo iequidoo marked this pull request as ready for review April 23, 2026 14:14
@iequidoo iequidoo requested review from Hocuri and j-g00da April 23, 2026 14:15
…8143)

There's no check for `from_id` so another group member can delete the message, but this can only
happen in case of message reordering and the problem already exists for usual messages, so we may
ignore it and overall a group represents a scope of trust.
@iequidoo iequidoo force-pushed the iequidoo/del-request-reordering branch from 0bb08f0 to 34b3f99 Compare April 23, 2026 17:12
Comment thread src/receive_imf.rs
Comment on lines +542 to +544
// This code handles the download of old partial download stub messages
// It will be removed after a transitioning period,
// after we have released a few versions with pre-messages
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.

BTW: Not in this PR here, but I think we can remove this code now. Pre-messages have been released since several versions, and nothing terrible happens if downloading a stub message fails (the user can just ask the sender to send it again).

Comment thread src/receive_imf.rs
@Hocuri
Copy link
Copy Markdown
Collaborator

Hocuri commented Apr 25, 2026

FTR, this will only work if the deletion request arrives up to 2 days before the original message, because prune_tombstones() deletes tombstones after 2 days. This seems fine, though.

Co-authored-by: Hocuri <hocuri@gmx.de>
@iequidoo iequidoo merged commit 6d61f7e into main Apr 26, 2026
19 checks passed
@iequidoo iequidoo deleted the iequidoo/del-request-reordering branch April 26, 2026 00:19
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.

Messages may not be deleted on all devices in some cases

2 participants