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

[UX] Design a single modal dialog for E2EE setup/import #5

Open
aguinetqb opened this issue Oct 6, 2021 · 0 comments
Open

[UX] Design a single modal dialog for E2EE setup/import #5

aguinetqb opened this issue Oct 6, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@aguinetqb
Copy link
Contributor

Today we have two commands to setup e2ee:

  • /init generate a new key & publish it
  • /import imports a previously backuped key

We have errors messages depending on the current situation, with --force flags to enforce the command if we know what we are doing.

We should do only one command & one modal dialog that adapts regarding the situation:

  • if no public key exist for the user:
    • if no key is in the browser: generates & show the backup
    • if a key is in the browser: it probably means something wrong happened potentially during key generation. Propose key generation again.
  • if a public key exists for the user:
    • if a key is in the browser, verify that it matches. If not, propose to import the according private key or override the public key. If it matches, everything is fine (do nothing)
    • if no key is in the browser, propose to import a key. Add a button to force key generation with the appropriate warning (that is the inability to read the user's old all messages for the user itself and others)

Once this dialog exists, we could also add a menu entry in the main MM menu to launch it, making this far more user friendly!

@aguinetqb aguinetqb added the enhancement New feature or request label Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant