-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Request and respond to key sharing for backup key as well #12704
Comments
we can see what's cached with If this throws, it means no cached key was available. edit: or |
I'm using this diff so I can run tests quickly:
and then in the console: |
alright! Now we have a cache which should mean we only ever have to prompt the user for their backup keys once per session. Still to do:
|
the key sharing request during verification happens here: https://github.com/matrix-org/matrix-js-sdk/pull/1245/files#diff-0a3445e771f0c35ffee76e9d08b65e12R219 I think what's essentially needed is along the lines of
problems to solve:
|
I think we'd want to at least request during a self verification, like with USK and SSK, so that all keys come across at the same time? But yes, we may also want to request during restoring as well if we don't already have it. |
After a successful verification with ourselves, request the key backup key too and restore a key backup if we get it. Also cache the key backup key when we cache the SSK & USK so we have it available to share. Fixes element-hq/element-web#12704
* Remove dependency on libolm We no longer use this (and haven't for some time, afaict). * Make olm a dev dep * Revert "Make olm a dev dep" This reverts commit f733cdfaf0d7af198b89a10021a976e8f4fff632.
Similar to USK and SSK, we should also request and respond to the key backup key in 4S as well.
The text was updated successfully, but these errors were encountered: