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({