From d391e52130163f95c2708727ef2f3d316f452d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Mon, 1 Jun 2026 15:02:46 +0200 Subject: [PATCH] refactor: No longer set timeline event as state event We did this in the past to store the lastEvent but we now have a dedicated slot in our Room JSON structure for the persistent storage. --- lib/encryption/encryption.dart | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/encryption/encryption.dart b/lib/encryption/encryption.dart index 23aad756d..48342281d 100644 --- a/lib/encryption/encryption.dart +++ b/lib/encryption/encryption.dart @@ -316,9 +316,6 @@ class Encryption { ); } if (event.type != EventTypes.Encrypted && store) { - if (updateType != EventUpdateType.history) { - event.room.setState(event); - } await client.database.storeEventUpdate( event.room.id, event,