1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

Let event decryption be asynchronous

Once everything moves to indexeddb, it's going to require callbacks and the
like, so let's make the decrypt API asynchronous in preparation.
This commit is contained in:
Richard van der Hoff
2017-07-07 14:16:35 +01:00
parent 86f2c86440
commit 8bbf14acbf
7 changed files with 122 additions and 51 deletions

View File

@@ -103,8 +103,9 @@ describe("MegolmDecryption", function() {
},
});
megolmDecryption.decryptEvent(event);
expect(event.getContent()).toEqual('testytest');
return megolmDecryption.decryptEvent(event).then(() => {
expect(event.getContent()).toEqual('testytest');
});
});
it('can respond to a key request event', function() {