From d64db185bd1a32726af2e05edd19f9f0a3363a46 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 28 Aug 2020 13:54:42 +0200 Subject: [PATCH] await callback in case we need to read, then write from it --- src/matrix/e2ee/Account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/e2ee/Account.js b/src/matrix/e2ee/Account.js index f53532f1..92478156 100644 --- a/src/matrix/e2ee/Account.js +++ b/src/matrix/e2ee/Account.js @@ -115,7 +115,7 @@ export class Account { storage.storeNames.session ]); try { - callback(txn.session); + await callback(txn.session); } catch (err) { txn.abort(); throw err;