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

Implement sharing of megolm keys #454

Merged
merged 2 commits into from
Jun 7, 2017
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jun 6, 2017

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

if (!decryptor.hasKeysForKeyRequest(req)) {
) whether we have the keys for that session. If the device is verified, or the user accepts the request, we then send an m.forwarded_room_key event with the keys to the session.

};


MegolmDecryption.prototype.shareKeysWithDevice = function(keyRequest) {
Copy link
Contributor

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?

Copy link
Member Author

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

* Send the response to a room key request
. I've updated the jsdoc stuff so that the jsdoc will be correctly inherited from the base class.

Copy link
Contributor

@NegativeMjark NegativeMjark left a comment

Choose a reason for hiding this comment

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

LGTM

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