Closed giomfo closed 3 weeks ago
reproduced on E-iOS: https://github.com/element-hq/element-ios/issues/7795
@uhoreg investigated this issue. He observed the following error in the logs:
2024-05-22T22:51:30*074GMT+00:00Z 97 D/ /Tag: WARN matrix_sdk_crypto::identities::manager: Failed to create a new device user_id="
"Looking at the Android sources, it looks like when it makes the /keys/query
request, if I'm reading it correctly, it parses the response into a KeysQueryResponse
, the device_keys
get parsed into a DeviceKeysWithUnsigned
, which only has set properties. Since dehydrated
is not one of the properties, it gets dropped, which means that the signature is no longer valid.
Something in there needs to be changed so that any unknown properties still get passed on, otherwise any device keys that have unknown properties will fail the signature check.
I haven't looked at the iOS code, but if it is also failing, then it may have a similar problem."
Steps to reproduce
Outcome
What did you expect?
The userA is able to decrypt and read the message sent by userB
What happened instead?
The message is not decrypted on userA side (UTD message)
Your phone model
No response
Operating system version
No response
Application version and app store
v1.6.14
Homeserver
No response
Will you send logs?
No
Are you willing to provide a PR?
No