Skip to content

Commit

Permalink
Merge pull request #587 from matrix-org/dbkr/inbound_sessions_to_cryp…
Browse files Browse the repository at this point in the history
…tostore

Migrate inbound sessions to cryptostore
  • Loading branch information
dbkr authored Jan 9, 2018
2 parents 8403042 + 145c760 commit af4f05c
Show file tree
Hide file tree
Showing 9 changed files with 515 additions and 253 deletions.
4 changes: 3 additions & 1 deletion spec/unit/crypto/algorithms/megolm.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Promise from 'bluebird';
import sdk from '../../../..';
import algorithms from '../../../../lib/crypto/algorithms';
import WebStorageSessionStore from '../../../../lib/store/session/webstorage';
import MemoryCryptoStore from '../../../../lib/crypto/store/memory-crypto-store.js';
import MockStorageApi from '../../../MockStorageApi';
import testUtils from '../../../test-utils';

Expand Down Expand Up @@ -45,8 +46,9 @@ describe("MegolmDecryption", function() {

const mockStorage = new MockStorageApi();
const sessionStore = new WebStorageSessionStore(mockStorage);
const cryptoStore = new MemoryCryptoStore(mockStorage);

const olmDevice = new OlmDevice(sessionStore);
const olmDevice = new OlmDevice(sessionStore, cryptoStore);

megolmDecryption = new MegolmDecryption({
userId: '@user:id',
Expand Down
Loading

0 comments on commit af4f05c

Please sign in to comment.