-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Implement sharing of megolm keys #454
Conversation
665ed05
to
2c54d76
Compare
src/crypto/algorithms/megolm.js
Outdated
}; | ||
|
||
|
||
MegolmDecryption.prototype.shareKeysWithDevice = function(keyRequest) { |
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.
Do these functions need documentation to explain what they are doing?
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.
They override the methods in the base class - see
matrix-js-sdk/src/crypto/algorithms/base.js
Line 156 in 2c54d76
* Send the response to a room key request |
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.
LGTM
This builds on previously-landed code (specifically #449) to implement sharing of megolm keys.
When we get a request from one of our other devices we check (via the existing hook
matrix-js-sdk/src/crypto/index.js
Line 1158 in 665ed05