forgot to pass account

This commit is contained in:
Bruno Windels 2020-09-03 15:28:38 +02:00
parent e22131bf57
commit 1f8005cdfd

View File

@ -67,7 +67,7 @@ export class Decryption {
const payloads = results.reduce((all, r) => all.concat(r.payloads), []); const payloads = results.reduce((all, r) => all.concat(r.payloads), []);
const errors = results.reduce((all, r) => all.concat(r.errors), []); const errors = results.reduce((all, r) => all.concat(r.errors), []);
const senderKeyDecryptions = results.map(r => r.senderKeyDecryption); const senderKeyDecryptions = results.map(r => r.senderKeyDecryption);
return new DecryptionChanges(senderKeyDecryptions, payloads, errors, locks); return new DecryptionChanges(senderKeyDecryptions, payloads, errors, this._account, locks);
} catch (err) { } catch (err) {
// make sure the locks are release if something throws // make sure the locks are release if something throws
for (const lock of locks) { for (const lock of locks) {