fix: Room previews not showing replies

This commit is contained in:
Sorunome 2021-09-16 15:48:41 +02:00
parent 12c4695c06
commit 1652213ab0
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}