You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New ad-hoc group is created for each message that cannot be decrypted #1565
A user has reinstalled DC without importing old key.
User was added to a new verified group with the old key (verified).
For each message sent to this group, a new ad-hoc group with name ... is created.
I expect that even though it is a encrypted and verified group, all messages should fall into the same chat, because group ID can be extracted from unencrypted message-ID.
Or, alternatively, all messages should fall in the sender chat, to avoid having a group named ..., sending to which will create error messages saying "Sender of this message is not verified".
A new group ... is created for each sender that sends to this group, and it has a random ID generated by create_adhoc_grp_id that looks like 2024c44da630b433. Normal group IDs look like YhIUVTlAq0F. So it is indeed an ad-hoc group.
As for me, creating a group named ... does not seem like a good idea even if correct group-id is extracted from the message-ID. It would be nice to hide group IDs and recipient list for verified groups in the future, and if we rely on unencrypted group IDs stored in message IDs, it would be harder.
So I am going to proceed with option 2: "all messages should fall in the sender chat".
If the messenger finds a valid but not existent group-id, the messenger MAY create a new group. If no group-id is found, the message MAY be assigned to a normal single-user chat with the email-address given in From.
In the case described in this issue "valid but not existent" group ID is found in the message-id.
However,
Groups MUST have a group-name. The group-name is any non-zero-length UTF-8 string.
Name ... is technically valid, but assigning the message to single-user chat seems to also be a valid option (it is MAY and we can pretend that we don't see a group ID if there is no valid group name).
@gerryfrancis Yes, everything seen there (... names, groups treated as completely separate) confirm that ... are ad-hoc groups created for each sender (up to 10 groups can be created, one for each sender in 11-member group) because the user lost the key. My plan is to assign such messages to sender chats without creating ad-hoc groups.
Activity
link2xt commentedon Jun 6, 2020
I have tried to reproduce this in #1566
A new group
...is created for each sender that sends to this group, and it has a random ID generated bycreate_adhoc_grp_idthat looks like2024c44da630b433. Normal group IDs look likeYhIUVTlAq0F. So it is indeed an ad-hoc group.As for me, creating a group named
...does not seem like a good idea even if correct group-id is extracted from the message-ID. It would be nice to hide group IDs and recipient list for verified groups in the future, and if we rely on unencrypted group IDs stored in message IDs, it would be harder.So I am going to proceed with option 2: "all messages should fall in the sender chat".
link2xt commentedon Jun 6, 2020
According to the spec (section incoming group messages):
In the case described in this issue "valid but not existent" group ID is found in the message-id.
However,
Name
...is technically valid, but assigning the message to single-user chat seems to also be a valid option (it is MAY and we can pretend that we don't see a group ID if there is no valid group name).gerryfrancis commentedon Jun 6, 2020
@link2xt Do you think #1347 is related?
link2xt commentedon Jun 7, 2020
@gerryfrancis Yes, everything seen there (
...names, groups treated as completely separate) confirm that...are ad-hoc groups created for each sender (up to 10 groups can be created, one for each sender in 11-member group) because the user lost the key. My plan is to assign such messages to sender chats without creating ad-hoc groups.gerryfrancis commentedon Jun 7, 2020
link2xt commentedon Jun 8, 2020
link2xt commentedon Jun 8, 2020
Closed by #1566