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

Missing device_one_time_keys_count in sync response causes no keys to be uploaded #3725

Closed
dbkr opened this issue Jul 22, 2021 · 3 comments
Closed
Assignees
Labels
S-Critical Prevents work, causes data loss and/or has no workaround

Comments

@dbkr
Copy link
Member

dbkr commented Jul 22, 2021

matrix-org/synapse#10214 was recently merged to synapse which caused it to omit the device_one_time_keys_count section if no OTKs of any type were present. Element android only calls updateOneTimeKeyCount if the section is present (https://github.com/vector-im/element-android/blob/2864101e2aa2368ceac89e7532b6944530a8bdb4/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/crypto/DefaultCryptoService.kt#L417) so this caused a new session to never upload any OTKs, meaning all messages would be undecryptable.

@bmarty
Copy link
Member

bmarty commented Jul 22, 2021

Currently handled in #3724 (in progress)

@bmarty bmarty added this to the Sprint - Element 1.1.14 milestone Jul 22, 2021
@dbkr dbkr changed the title Missing device_one_time_keys_count is sync response causes no keys to be uploaded Missing device_one_time_keys_count in sync response causes no keys to be uploaded Jul 22, 2021
erikjohnston pushed a commit to matrix-org/synapse that referenced this issue Jul 22, 2021
@deepbluev7
Copy link
Contributor

This issue may be one of the reasons, why E2EE doesn't work properly on Conduit.

@bmarty
Copy link
Member

bmarty commented Jul 23, 2021

Fixed in #3724
Element Android 1.1.14

@bmarty bmarty closed this as completed Jul 23, 2021
@bmarty bmarty added S-Critical Prevents work, causes data loss and/or has no workaround and removed 🔥 fire labels Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Critical Prevents work, causes data loss and/or has no workaround
Projects
None yet
Development

No branches or pull requests

3 participants