Fixes a bug when comparing int and long in the comparator

This commit is contained in:
Vitor Pamplona
2025-09-12 13:36:25 -04:00
parent 33155efa99
commit 2e16a1dca6

View File

@@ -194,7 +194,7 @@ class HomeLiveFilter(
return collection.sortedWith(
compareByDescending<Channel> { followCounts[it] }
.thenByDescending<Channel> { it.lastNote?.createdAt() ?: 0 }
.thenByDescending<Channel> { it.lastNote?.createdAt() ?: 0L }
.thenBy { it.hashCode() },
)
}