From 25c8f1cf04beacd7db56d44afb7bd9a8dbd176bf Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Thu, 3 Nov 2022 16:36:31 +0100 Subject: [PATCH] always return a promise from this method, even if nothing to verify --- src/matrix/e2ee/RoomEncryption.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/e2ee/RoomEncryption.js b/src/matrix/e2ee/RoomEncryption.js index 6d42c873..4dd6cd0b 100644 --- a/src/matrix/e2ee/RoomEncryption.js +++ b/src/matrix/e2ee/RoomEncryption.js @@ -222,7 +222,7 @@ export class RoomEncryption { } /** fetches the devices that are not yet known locally from the homeserver to verify the sender of this message. */ - _fetchKeyAndVerifyDecryptionResults(results, hsApi, log) { + async _fetchKeyAndVerifyDecryptionResults(results, hsApi, log) { const resultsWithoutDevice = results.filter(r => r.isVerificationUnknown); if (resultsWithoutDevice.length) { return log.wrap("fetch unverified senders", async log => {