-
-
Notifications
You must be signed in to change notification settings - Fork 592
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
Add support for olm fallback keys #1467
Conversation
There was a problem hiding this 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
@@ -1361,6 +1361,15 @@ SyncApi.prototype._processSyncResponse = async function( | |||
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
@jryans already approved this, but it has probably changed enough since then that it should be reapproved |
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