Fix threaded message rendering rich reply when they shouldn't

Change-Id: I5a1c1d177d896d203f2420bdd1536dfcbbd460d6
This commit is contained in:
SpiritCroc 2022-12-17 11:31:51 +01:00
parent aa9e0bc627
commit 7a83a44077

View file

@ -124,7 +124,8 @@ class ReplyPreviewRetriever(
synchronized(data) {
val current = data[eventId]
val repliedToEventId = event.root.getRelationContent()?.inReplyTo?.eventId
val relationContent = event.root.getRelationContent()
val repliedToEventId = relationContent?.inReplyTo?.eventId?.takeIf { relationContent.isFallingBack != true }
if (current == null || repliedToEventId != current.latestRepliedToEventId) {
// We have not rendered this yet, or the replied-to event has updated
if (repliedToEventId?.isNotEmpty().orFalse()) {