From a12f10dc3c5b2a62cfe4099e1403de7c5c55e433 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 6 May 2021 15:23:33 +0200 Subject: [PATCH] make type explicit --- 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 721be2d0..60e03193 100644 --- a/src/matrix/e2ee/RoomEncryption.js +++ b/src/matrix/e2ee/RoomEncryption.js @@ -83,7 +83,7 @@ export class RoomEncryption { } async writeMemberChanges(memberChanges, txn, log) { - let shouldFlush; + let shouldFlush = false; const memberChangesArray = Array.from(memberChanges.values()); if (memberChangesArray.some(m => m.hasLeft)) { log.log({