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

Upload device keys during initCrypto #2872

Merged
merged 13 commits into from
Dec 7, 2022
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Nov 11, 2022

Rather than waiting for the application to call .startClient, upload the device keys during initCrypto(). Element-R is going to approach this slightly differently (it wants to manage the decision on key uploads itself), so this lays some groundwork by collecting the libolm-specific bits together.

Based on #2871

Part of element-hq/element-web#21972


This change is marked as an internal change (Task), so will not be included in the changelog.

This isn't really needed, and its semantics are poorly defined. (Contrary to
the comment, it dos *not* set background processes running).
Rather than waiting for the application to call `.startClient`, upload the
device keys during `initCrypto()`. Element-R is going to approach this slightly
differently (it wants to manage the decision on key uploads itself), so this
lays some groundwork by collecting the libolm-specific bits together.
@richvdh richvdh requested a review from a team as a code owner November 11, 2022 14:21
@richvdh richvdh added the T-Task Tasks for the team like planning label Nov 11, 2022
@richvdh richvdh force-pushed the rav/remove_upload_keys branch from 6428643 to 1ec2e3b Compare December 6, 2022 14:42
@richvdh
Copy link
Member Author

richvdh commented Dec 6, 2022

Very little has actually changed since Simon's review (https://github.com/matrix-org/matrix-js-sdk/pull/2872/files/ed1a63726a2d47ae57d0339f8c3d4c7acf787bcf..1ec2e3b399806fa007f72886337ffe9544a55588) so I'm going to consider his review as still good, and merge this.

@richvdh
Copy link
Member Author

richvdh commented Dec 6, 2022

(or I will, if I can ever get the typescript checks to pass. Looks like we need to wait for #2895)

@richvdh richvdh deleted the rav/remove_upload_keys branch December 7, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants