Skip to content
Snippets Groups Projects
Commit 0d24de27 authored by Pierre Nicolas's avatar Pierre Nicolas :joy: Committed by Pierre Nicolas
Browse files

conversation: fix lastevent

Should be considered as new leaf if it is the last non-invalid message.

GitLab: #1627
Change-Id: I34d5e26c085db556a51843f1e74fd30f21ec9f0a
parent 088ecb76
No related branches found
No related tags found
No related merge requests found
......@@ -606,6 +606,8 @@ class Conversation : ConversationHistory {
aggregateHistory.add(i, interaction)
updatedElementSubject.onNext(Pair(interaction, ElementStatus.ADD))
added = true
newLeaf = (i == 0 // True if it is the last non-invalid message.
&& aggregateHistory.last().type == Interaction.InteractionType.INVALID)
break
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment