From 2d5bb82077fdfb97c7e22b481ab8b987b3b55a73 Mon Sep 17 00:00:00 2001
From: RMidhunSuresh <hi@midhun.dev>
Date: Tue, 14 Dec 2021 14:36:57 +0530
Subject: [PATCH] Fix bug

---
 src/matrix/room/timeline/persistence/TimelineReader.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/matrix/room/timeline/persistence/TimelineReader.js b/src/matrix/room/timeline/persistence/TimelineReader.js
index dd7474e7..23ec4ed8 100644
--- a/src/matrix/room/timeline/persistence/TimelineReader.js
+++ b/src/matrix/room/timeline/persistence/TimelineReader.js
@@ -134,7 +134,7 @@ export class TimelineReader {
 
     async readById(id, log) {
         let stores = [this._storage.storeNames.timelineEvents];
-        if (this.isEncrypted) {
+        if (this._decryptEntries) {
             stores.push(this._storage.storeNames.inboundGroupSessions);
         }
         const txn = await this._storage.readTxn(stores); // todo: can we just use this.readTxnStores here? probably