Skip to content

better alias- and ad-hoc-group support using In-Reply-To/References header #2073

Closed

Description

@r10s

in recent discussions, we mostly agreed to give the In-Reply-To header a higher priority when finding out the group an incoming message belongs to.

  • if an incoming is not a delta-chat-message (no explicit group-id given) but refers to an existing message via its In-Reply-To header, the message should be sorted to the chat of the existing message.

  • missing recipients should be added, maybe we should do that for ad-hoc-groups only

  • there should be a python tests for that, using a classic mua as the counterpart

this would solve some problems:

known issues: if the referred message is already deleted, this approach won't work. however, the situation would not be worse than it is today, so it should be an overall improvement.

this issue is a summary/successor of #2016.

Activity

  1. Hocuri commented on Dec 2, 2020

    @Hocuri
    Collaborator
    • if an incoming is not a delta-chat-message (no explicit group-id given) but refers to an existing message via its In-Reply-To header, the message should be sorted to the chat of the existing message.

    I think that we should only do this if the receipients lists match at least roughly to avoid showing 1:1 messages in groups. We now have quotes that can be used show to which message this is an answer, and if a message is shown in a group, the user expects that it was sent to the group (i.e. all or at least most members know about this message; it may be OK if a member added 2s ago misses the message)

  2. Hocuri commented on Dec 10, 2020

    @Hocuri
    Collaborator

    Another person who faced this issue: deltachat/deltachat-android#1750

  3. cauerego commented on Dec 10, 2020

    @cauerego

    yes that was me.

    i'll refrain to try to understand all technicalities, but indeed the other person in my screenshot is not using delta chat. 😣

  4. changed the title [-]better alias- and ad-hoc-group support using In-Reply-To header[/-] [+]better alias- and ad-hoc-group support using In-Reply-To/References header[/+] on Mar 15, 2021
  5. Hocuri commented on Mar 15, 2021

    @Hocuri
    Collaborator

    We settled for this:

    • Messages can be assigned to any chat by the References and In-Reply-To, also to 1:1 chats; this has higher priority than the group id.

    • If From is not in the chat, OverrideSenderDisplayname is set. This communicates to the UI that:

      • A ~should be added in front of the sender's displayname.
      • Also in 1:1 chats, the sender's displayname and avatar is shown, as if this was a group.

      The "Unknown sender for this chat" messages are completely removed.

    For protected chats, everything stays as it was before.

    Maybe (if it turns out to be still necessary):

    • The ad-hoc group id is computed by the the References, instead of the member list, as it is currently done
  6. added a commit that references this issue on Apr 10, 2021
    3707471
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions