Skip to content

Conversation

iequidoo
Copy link
Collaborator

@iequidoo iequidoo commented Sep 28, 2025

Fix #7220

If a self-addition message is received, but we're already in the group, there must be no hidden
member changes.
Old Delta Chat clients don't provide timestamps for added and removed members in messages, so at
least implicit member changes may be ignored as it's not clear if they are newer than explicit
member changes from modern clients. Lost messages aren't so frequent anyway, and overall
compatibility with old versions may be limited already.
@iequidoo iequidoo requested a review from link2xt September 28, 2025 20:11
@link2xt
Copy link
Collaborator

link2xt commented Oct 2, 2025

The fix is fine, but what is the reason for second commit ("feat: No implicit member changes from old Delta Chat clients")? If members are added or removed I expect that this does not happen silently even if the message does not have a timestamp.

@iequidoo
Copy link
Collaborator Author

iequidoo commented Oct 2, 2025

If members are added or removed I expect that this does not happen silently even if the message does not have a timestamp.

With the second commit this won't happen at all. If we are already in the group and receive a self-addition message from old Delta Chat, we can ignore all member changes because it's not clear whether they are fresher than member changes that we have. So we also don't add any "member added" messages to the chat. I think it's better to reduce support for old versions already, particularly in such corner cases.

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.

Member count should never allowed to go down without members removed showing
2 participants