element-web icon indicating copy to clipboard operation
element-web copied to clipboard

"default" and "secure_backup_setup_methods" ignored in .well-known/matrix/client

Open on1arf opened this issue 8 months ago • 2 comments

Steps to reproduce

I am not 100 % sure if this is a bug. I have asked this question both in the "synapse-admin" and "element-web" rooms on matrix, but did not receive any answer to this.

I want to implement some of the e2ee options as described here: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md

On my server, I have a .well-known/matrix/client file that looks like this: { "m.homeserver": { "base_url": "https://c1.uba.be" }, "io.element.e2ee": { "secure_backup_required": true, "default": false, "secure_backup_setup_methods": [ "passphrase" ] } }

Outcome

What did you expect?

When I connect with the element-web client (latest version from docker hub) with a new user, I would have expected two things

  • when doing a 'backup my secret key' to see only the option 'passphrase' (not the token) option
  • when starting a new chat (person-to-person), the chat not to have encryption enabled

What happened instead?

It looks like both options ehere ignored.

  • when doing a backup-secret-key, it also showed (and defaulted to) the 'token' option
  • when starting a new chat-session, e2ee was enabled.

Operating system

server: debian (docker-based), Client: ubuntu (firefox)

Application version

vectorim/element-web v1.11.66

How did you install the app?

docker

Homeserver

https://c1.uba.be/

Will you send logs?

Yes

on1arf avatar May 29 '24 16:05 on1arf