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

Prepare the receiver for self-sent messages with empty To field #6407

Merged
merged 6 commits into from
Jan 5, 2025

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Jan 4, 2025

This is a preparation PR for #6401. Currently Delta Chat puts self address in the To field when there are no other recipients, e.g. in Saved Messages chat or in "member removed" message deleting the last member. I want to change this to send empty hidden-recipients group instead like some clients do when there are only Bcc recipients or like we already do for broadcast lists. Currently Delta Chat assigns such messages to trash unless they are broadcast list messages, this PR fixes this with a test.

New Delta Chat is going to send self-sent messages
with undisclosed recipients instead of placing self into the `To` field.
To avoid assigning broadcast list messages to Saved Messages chat,
we should check the mailing list headers
before attempting to assign to Saved Messages.
@link2xt link2xt force-pushed the link2xt/putnmwzpnlpp branch 2 times, most recently from ee6ec9c to b9aa5e4 Compare January 4, 2025 20:25
@link2xt link2xt changed the title fix: prioritize mailing list over self-sent messages Prepare the receiver for self-sent messages with empty To field Jan 4, 2025
Currently Delta Chat puts self address in the To field
to avoid the To field being empty.
There is a plan to put empty `hidden-recipients`
group there, this fix prepares the receiver for such messages.
Previously such messages were assigned to trash.
@link2xt link2xt force-pushed the link2xt/putnmwzpnlpp branch from 68a9863 to 57e0b5b Compare January 4, 2025 21:06
@link2xt link2xt requested review from iequidoo and Hocuri January 4, 2025 21:17
If message has empty `To` field
it is a self-sent message like a message
in Saved Messages chat or a sync message.
@link2xt link2xt merged commit 7e5cec6 into main Jan 5, 2025
37 checks passed
@link2xt link2xt deleted the link2xt/putnmwzpnlpp branch January 5, 2025 00:36
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.

2 participants