forked from mystiq/hydrogen-web
need to pass in olm
This commit is contained in:
parent
1f66868566
commit
14cba7ec6e
2 changed files with 3 additions and 2 deletions
|
@ -63,7 +63,7 @@ export class Session {
|
|||
storage: this._storage,
|
||||
olm: this._olm,
|
||||
});
|
||||
const megolmDecryption = new MegOlmDecryption({pickleKey: PICKLE_KEY});
|
||||
const megolmDecryption = new MegOlmDecryption({pickleKey: PICKLE_KEY, olm: this._olm});
|
||||
this._deviceMessageHandler.enableEncryption({olmDecryption, megolmDecryption});
|
||||
}
|
||||
|
||||
|
|
|
@ -16,8 +16,9 @@ limitations under the License.
|
|||
|
||||
// senderKey is a curve25519 key
|
||||
export class Decryption {
|
||||
constructor({pickleKey}) {
|
||||
constructor({pickleKey, olm}) {
|
||||
this._pickleKey = pickleKey;
|
||||
this._olm = olm;
|
||||
}
|
||||
|
||||
async addRoomKeys(payloads, txn) {
|
||||
|
|
Loading…
Reference in a new issue