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

Delay otk generation #260

Merged
merged 6 commits into from
Mar 7, 2017
Merged

Delay otk generation #260

merged 6 commits into from
Mar 7, 2017

Conversation

manuroe
Copy link
Contributor

@manuroe manuroe commented Mar 7, 2017

Equivalent of matrix-org/matrix-js-sdk#376.

With some differences / improvements due to the ios sdk behaviour:

  • MXSession does a loop of /sync requests until catching up is done. This ensures that we start crypto in the right condition
  • Upload OTK before sending the to-device announcement.

And delay the upload of one-time keys until we have received a sync without any to-device messages.

Equivalent to matrix-org/matrix-js-sdk#376
Make sure we upload one-time keys before doing the annoucement. Thus, other devices can download them once they receive our to-device annoucement event
Tests: Increase a bit test on time because the new flow seems slower.
@manuroe manuroe requested a review from ylecollen March 7, 2017 10:38
Call [deviceList refreshOutdatedDeviceLists] after making announcement.
Call [deviceList refreshOutdatedDeviceLists] after making announcement. -> Do it on the right thread
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