From c8e4dbc1b3059c8ea6b393bc000e7fe28a3df311 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 5 Oct 2020 17:06:29 +0200 Subject: [PATCH] this should be a map --- 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 90b6fd23..69a93e57 100644 --- a/src/matrix/e2ee/RoomEncryption.js +++ b/src/matrix/e2ee/RoomEncryption.js @@ -89,7 +89,7 @@ export class RoomEncryption { // but we want to be able to map it back to something in the timeline easily // when retrying decryption. async prepareDecryptAll(events, source, isTimelineOpen, txn) { - const errors = []; + const errors = new Map(); const validEvents = []; for (const event of events) { if (event.redacted_because || event.unsigned?.redacted_because) {