Skip to content

Add alias support 2 - #2297

Merged
Hocuri merged 16 commits into
masterfrom
alias-support-2
Apr 10, 2021
Merged

Hocuri merged 16 commits into
masterfrom
alias-support-2

Conversation

@Hocuri

@Hocuri Hocuri commented Mar 16, 2021 •

Copy link
Copy Markdown
Collaborator

fix #2073
fix #2292 (I think)

  • 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 because with ad-hoc groups, it can happen that two devices have different group ids for the same conversation thread.

  • If From is not in the chat (we call this "shadow sender"), 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 unprotected groups.

For protected chats, everything stays as it was before.

POSTPONED:

  • 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
    • How do we prevent that the message can't be assigned to the correct chat as the parent message was deleted?

@Hocuri

Hocuri commented Mar 18, 2021

Copy link
Copy Markdown
Collaborator Author

I'm done with what we thought of, and it looks really nice and totally feels like the correct thing to do!

There is one thing to decide left, which is, what if the referenced message was deleted for whatever reason; currently the message is shown in the wrong chat then. There are quite some possible solutions, let's decide on one of them at the weekend or next week.

@Hocuri Hocuri changed the title [WIP] Add alias support 2 Add alias support 2 Mar 22, 2021
Hocuri added a commit to deltachat/deltachat-android that referenced this pull request Mar 22, 2021
Hocuri added a commit to deltachat/deltachat-android that referenced this pull request Mar 22, 2021

@r10s r10s left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, however, the current plan is to get #2089 in first to avoid further merge conflicts.

@Hocuri

Hocuri commented Mar 26, 2021

Copy link
Copy Markdown
Collaborator Author

I pushed another commit, c977b1b, that will fix #2292 (at least, it will fix a bug, I'm not 100% sure #2292 is the same bug, but I think so)

@Hocuri
Hocuri force-pushed the alias-support-2 branch from c977b1b to 22b626f Compare April 5, 2021 13:22
@Hocuri
Hocuri changed the base branch from master to sqlx-next April 5, 2021 13:33
@Hocuri
Hocuri force-pushed the alias-support-2 branch from 72c68a1 to fbdd66c Compare April 5, 2021 14:04
@Hocuri Hocuri mentioned this pull request Apr 6, 2021
9 tasks done
Base automatically changed from sqlx-next to master April 6, 2021 14:03
@Hocuri
Hocuri force-pushed the alias-support-2 branch from 3cb4aab to daee6dc Compare April 6, 2021 15:39

@r10s r10s left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, great! also nice tests! conditions are pretty strict, but even then it is hard to overlook all possible effects, we need to test that in real life :)

Comment thread deltachat-ffi/deltachat.h Resolved
@Hocuri
Hocuri merged commit 3707471 into master Apr 10, 2021
@Hocuri
Hocuri deleted the alias-support-2 branch April 10, 2021 20:06
Hocuri added a commit to deltachat/deltachat-android that referenced this pull request Apr 12, 2021
* Adapt to alias support: Always show sender avatar and name on messages if OverrideSenderName is set

See chatmail/core#2297

* Rename groupThread to showSender as this variable is not only true in groups anymore
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.

Messages sent with Apple Mail do not appear better alias- and ad-hoc-group support using In-Reply-To/References header

2 participants