always return a promise from this method, even if nothing to verify

This commit is contained in:
Bruno Windels 2022-11-03 16:36:31 +01:00
parent cd5343414a
commit 25c8f1cf04

View File

@ -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 => {