1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Refactor crypto initialsync handling

Pass a store into the Crypto object so that it doesn't need to make assumptions
about the EventEmitter, and use the new metadata on sync events to distinguish
between initialsyncs and normal syncs
This commit is contained in:
Richard van der Hoff
2017-02-01 19:53:51 +00:00
parent 9975786bac
commit 732a764ec6
2 changed files with 31 additions and 17 deletions

View File

@@ -158,6 +158,7 @@ function MatrixClient(opts) {
this, this,
opts.sessionStore,
userId, this.deviceId,
this.store,
);
this.olmVersion = Crypto.getOlmVersion();