From 1652213ab082637a79a05cadacaacc181b219754 Mon Sep 17 00:00:00 2001 From: Sorunome Date: Thu, 16 Sep 2021 15:48:41 +0200 Subject: [PATCH] fix: Room previews not showing replies --- lib/src/room.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/room.dart b/lib/src/room.dart index b6269d5c..da1a75a5 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -323,10 +323,11 @@ class Room { EventTypes.Encrypted, ].contains(state.type); - // We ignore events relating to events older than the current-latest here so + // We ignore events editing events older than the current-latest here so // i.e. newly sent edits for older events don't show up in room preview if (isMessageEvent && state.relationshipEventId != null && + state.relationshipType == RelationshipTypes.edit && state.relationshipEventId != lastEvent?.eventId) { return; }