mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-28 05:59:05 +03:00
Fix threaded message rendering rich reply when they shouldn't
Change-Id: I5a1c1d177d896d203f2420bdd1536dfcbbd460d6
This commit is contained in:
parent
aa9e0bc627
commit
7a83a44077
1 changed files with 2 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue