Skip to content

New ad-hoc group is created for each message that cannot be decrypted #1565

Closed

Description

@link2xt

What happened:

  1. A user has reinstalled DC without importing old key.
  2. User was added to a new verified group with the old key (verified).
  3. 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".

Activity

  1. self-assigned this
    on Jun 6, 2020
  2. link2xt commented on Jun 6, 2020

    @link2xt
    CollaboratorAuthor

    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 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".

  3. link2xt commented on Jun 6, 2020

    @link2xt
    CollaboratorAuthor

    According to the spec (section incoming group messages):

    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).

  4. gerryfrancis commented on Jun 6, 2020

    @gerryfrancis
    Contributor

    @link2xt Do you think #1347 is related?

  5. link2xt commented on Jun 7, 2020

    @link2xt
    CollaboratorAuthor

    @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.

  6. gerryfrancis commented on Jun 7, 2020

    @gerryfrancis
  7. link2xt commented on Jun 8, 2020

    @link2xt
    Author
  8. link2xt commented on Jun 8, 2020

    @link2xt
    CollaboratorAuthor

    Closed by #1566

  9. added
    bug
    on Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions