Repository navigation
dc_receive_imf: do not create adhoc groups when group ID is known - #1766
Merged
Merged
Conversation
link2xt
force-pushed
the
no-adhoc-with-grpid
branch
2 times, most recently
from
July 27, 2020 09:54
1b93b82 to
092e3a1
Compare
Collaborator
|
But why do we return DC_CHAT_ID_TRASH, not 0? DC_CHAT_ID_TRASH means that the message will not be shown at all. I guess that this also is why the test fails. |
Adhoc groups for group messages that don't have Chat-Group-ID are already created above in another create_or_lookup_adhoc_group. At this point it could be that there is a valid Chat-Group-ID header, but no group was created because removed_id was non-zero i.e. received message removes some group member. If group was not explicitly left, current code creates an adhoc group instead of trashing late or reordered messages that remove group members. Such groups have adhoc group IDs locally, but proper group message-IDs. Attempts to reply to such groups or leave them creates "split groups" for all other members of original group. The solution is not to create adhoc groups in this case.
link2xt
force-pushed
the
no-adhoc-with-grpid
branch
from
July 27, 2020 11:18
092e3a1 to
a45f651
Compare
Collaborator
Author
|
I fixed the failing test. Related PR: #1566 |
Hocuri
approved these changes
Jul 27, 2020
Hocuri
left a comment
Collaborator
There was a problem hiding this comment.
Lgtm now, but maybe @hpk42 or @dignifiedquire should have a look, too
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adhoc groups for group messages that don't have Chat-Group-ID are already
created above in another
create_or_lookup_adhoc_group.At this point it could be that there is a valid Chat-Group-ID header,
but no group was created because
removed_idwas non-zero i.e. receivedmessage removes some group member.
If group was not explicitly left, current code creates an adhoc group
instead of trashing late or reordered messages that remove group
members. Such groups have adhoc group IDs locally, but proper group
message-IDs. Attempts to reply to such groups or leave them creates
"split groups" for all other members of original group. The solution is
not to create adhoc groups in this case.