Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct Message: Manage encrypted DM in case of invite by email #6912

Closed
2 tasks
giomfo opened this issue Aug 22, 2022 · 0 comments
Closed
2 tasks

Direct Message: Manage encrypted DM in case of invite by email #6912

giomfo opened this issue Aug 22, 2022 · 0 comments
Assignees
Labels
A-DMs T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements Z-PS-Request

Comments

@giomfo
Copy link
Member

giomfo commented Aug 22, 2022

Your use case

Context sum up

Currently this is possible to start a new DM by filling an email address.

The resulting DM is an unencrypted room (even if the encryption should be enabled by default according to the HS well-known configuration) because there is no way to encrypt message in this room until an actual matrix account has joined the DM:
image

The purpose is to let the end user start sending messages before the invited contact creates theirs account and joins, but there is some concerns:

  • we run the risk to let people using an unencrypted DM without being aware of that
  • matrix.org allows us to create unencrypted DM, but some HS may force the encryption in the created DM. The user experience would not be good then

What would you like to do?

After discussing with Design team, we converged to the following solution:

  • When the HS promotes the encryption (via the well-known endpoint), the DM will be created by enabling the encryption. The chat composer will be disabled until a matrix account is created by using the invited email
  • In order to be able to name correctly the resulting room, only one email address will be allowed at once. The created DM will be added to the m.direct dictionary by using the email as key. The Element clients will then able to add this DM in the right people section and name it with the full email address

Here are the suggested design:
image

Figma: https://www.figma.com/file/OvsSONqAyabcUDYp8tnEs6/Start-a-DM?node-id=1373%3A49198

Have you considered any alternatives?

No response

Additional context

We plan to work on a PR for this in the following weeks

Are you willing to provide a PR?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-DMs T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements Z-PS-Request
Projects
None yet
Development

No branches or pull requests

3 participants