You've already forked matrix-js-sdk
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user