Skip to content

Conversation

uhoreg
Copy link
Member

@uhoreg uhoreg commented Sep 15, 2020

Requires matrix-org/synapse#8312 and https://gitlab.matrix.org/matrix-org/olm/-/merge_requests/13 (Should not be merged until a new olm release is made and the olm dependency is bumped.)

Implements MSC2732

@uhoreg uhoreg changed the title Add support for fallback keys Add support for olm fallback keys Sep 15, 2020
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall!

src/sync.js Outdated
const currentCount = data.device_one_time_keys_count.signed_curve25519 || 0;
this.opts.crypto.updateOneTimeKeyCount(currentCount);
}
if (this.opts.crypto && data.device_unused_fallback_keys) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, so a supporting server will list your fallback key in every sync response indefinitely? It would nice if there were some way for it to only appear when changed, rather than every time, but I'll leave that to the spec and server discussion.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment to the MSC for this.

@uhoreg
Copy link
Member Author

uhoreg commented Oct 6, 2020

@jryans already approved this, but it has probably changed enough since then that it should be reapproved

@uhoreg uhoreg requested review from a team and jryans and removed request for jryans October 6, 2020 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants