?: 0L forces Long regardless of nullability, so all comparisons are Long vs Long — no cast issue.

This commit is contained in:
davotoula
2026-04-03 21:08:05 +02:00
parent 397cdb6a6b
commit c0bdde0ce4
@@ -117,7 +117,7 @@ class DesktopThreadFilter(
val seen = LinkedHashSet<Note>()
seen.add(root)
collectReplies(root, seen)
return seen.sortedWith(compareBy { it.createdAt() ?: 0 })
return seen.sortedWith(compareBy { it.createdAt() ?: 0L })
}
private fun collectReplies(