From 6c5fecc4d20c9f2cc49f919fb9288c3ed1352a39 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 31 Mar 2023 15:30:57 -0400 Subject: [PATCH] Loads the replies of the selected note. --- .../com/vitorpamplona/amethyst/model/ThreadAssembler.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/model/ThreadAssembler.kt b/app/src/main/java/com/vitorpamplona/amethyst/model/ThreadAssembler.kt index b8d0f4086..636ee52b9 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/model/ThreadAssembler.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/model/ThreadAssembler.kt @@ -53,7 +53,11 @@ class ThreadAssembler { val threadRoot = searchRoot(note, thread) ?: note loadDown(threadRoot, thread) - loadDown(note, thread) + // adds the replies of the note in case the search for Root + // did not added them. + note.replies.forEach { + loadDown(it, thread) + } thread.toSet() } else {