mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 08:07:34 +02:00
Fixes issue with the order of same-author events in a thread
This commit is contained in:
@@ -58,7 +58,7 @@ object ThreadLevelCalculator {
|
|||||||
|
|
||||||
// estimates the min date by replies if it doesn't exist.
|
// estimates the min date by replies if it doesn't exist.
|
||||||
val createdAt =
|
val createdAt =
|
||||||
min(
|
note.createdAt() ?: min(
|
||||||
note.replies.minOfOrNull { it.createdAt() ?: now } ?: now,
|
note.replies.minOfOrNull { it.createdAt() ?: now } ?: now,
|
||||||
note.reactions.values.minOfOrNull { it.minOfOrNull { it.createdAt() ?: now } ?: now } ?: now,
|
note.reactions.values.minOfOrNull { it.minOfOrNull { it.createdAt() ?: now } ?: now } ?: now,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user