Fixing search for root to go backwards in the etag-stack.

This commit is contained in:
Vitor Pamplona
2023-08-21 18:17:21 -04:00
parent a9af2d8982
commit 2bedd79e6f

View File

@@ -22,7 +22,7 @@ class ThreadAssembler {
}
}
val hasNoReplyTo = note.replyTo?.firstOrNull { it.replyTo?.isEmpty() == true }
val hasNoReplyTo = note.replyTo?.reversed()?.firstOrNull { it.replyTo?.isEmpty() == true }
if (hasNoReplyTo != null) return hasNoReplyTo
// recursive