mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 03:56:24 +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.
|
||||
val createdAt =
|
||||
min(
|
||||
note.createdAt() ?: min(
|
||||
note.replies.minOfOrNull { it.createdAt() ?: now } ?: now,
|
||||
note.reactions.values.minOfOrNull { it.minOfOrNull { it.createdAt() ?: now } ?: now } ?: now,
|
||||
)
|
||||
|
Reference in New Issue
Block a user