Skip to content

Conversation

iequidoo
Copy link
Collaborator

Based on #7123 to avoid merge conflicts.
See commit messages. Close #7136

@iequidoo iequidoo force-pushed the iequidoo/self-status branch from 3e0a181 to 13ee0d1 Compare September 19, 2025 07:01
…sent

This prepares for sending self-status only together with self-avatar in encrypted messages. The idea
is that self-status normally doesn't change frequently, so it's not a problem to re-send the whole
profile. Self-status is rather a biography, it even goes to "NOTE:" in vCards, so it's not a contact
status at a particular moment like "online" or "busy", and to see it one should go to the contact
profile.

Don't check for "Chat-Version" header though. So if a non- Delta Chat key-contact removes footer,
its "status" remains, but this shouldn't be a problem.

For unencrypted messages self-status will still be always attached except MDNs, reactions and
SecureJoin messages, so that it's visible as the message footer in other MUAs.
The normal way of synchronizing self-avatar and -status nowadays is sync messages.
@iequidoo iequidoo force-pushed the iequidoo/self-status branch from 13ee0d1 to 137ede8 Compare October 8, 2025 00:44
We don't display avatars for address-contacts, so sending avatars w/o encryption is not useful and
causes e.g. Outlook to reject a message with a big header, see
https://support.delta.chat/t/invalid-mime-content-single-text-value-size-32822-exceeded-allowed-maximum-32768-for-the-chat-user-avatar-header/4067.
`chat::set_chat_profile_image()` already checks that the group has grpid, still it makes sense to
check that a message is encrypted when sending, in case if the chat has a profile image in the db
for some reason.
@iequidoo iequidoo force-pushed the iequidoo/no-unencrypted-avatars branch from 3f3574e to e7e5658 Compare October 8, 2025 00:45
@iequidoo iequidoo force-pushed the iequidoo/self-status branch 2 times, most recently from aafa034 to 73af206 Compare October 13, 2025 05:49
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.

1 participant