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

Can't verify user when option to send keys to verified devices only is selected

Open BillCarsonFr opened this issue 3 years ago • 1 comments

Steps to reproduce

  1. Go to Settings > Security & Privacy
  2. Enable 'Encrypt to verified devices only'
  3. Go back to a DM with one of your contact, click on his profile
  4. Tap on verify.

Outcome

What did you expect?

That you initiate a verification process.

What happened instead?

It's failing because the recipient won't be able to decrypt the verification request image

So it's quite annoying, I enabled 'Encrypt to verified devices only' and I have unverified users in a room. So you would think that verify them will fix the issue, but you can't

Your phone model

No response

Operating system version

No response

Application version and app store

1.4.32

Homeserver

local synapse

Will you send logs?

No

Are you willing to provide a PR?

Yes

BillCarsonFr avatar Aug 03 '22 08:08 BillCarsonFr

As per spec:

When using in-room messages and the room has encryption enabled, clients should ensure that encryption does not hinder the verification. For example, if the verification messages are encrypted, clients must ensure that all the recipient’s unverified devices receive the keys necessary to decrypt the messages, even if they would normally not be given the keys to decrypt messages in the room. Alternatively, verification messages may be sent unencrypted, though this is not encouraged.

BillCarsonFr avatar Aug 03 '22 08:08 BillCarsonFr