File tree Expand file tree Collapse file tree
apps/android/app/src/main/java/ai/openclaw/app/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -883,18 +883,14 @@ internal fun overviewRecentSessions(sessions: List<ChatSessionEntry>): List<Chat
883883 .sortedWith(
884884 compareByDescending<IndexedValue <ChatSessionEntry >> { entry -> entry.value.overviewRecentSessionRecencyMs() }
885885 .thenBy { entry -> entry.index },
886- )
887- .first()
888- }
889- .sortedWith(
886+ ).first()
887+ }.sortedWith(
890888 compareByDescending<IndexedValue <ChatSessionEntry >> { entry -> entry.value.overviewRecentSessionRecencyMs() }
891889 .thenBy { entry -> entry.value.key },
892- )
893- .take(overviewRecentSessionLimit)
890+ ).take(overviewRecentSessionLimit)
894891 .map { entry -> entry.value }
895892
896- private fun ChatSessionEntry.overviewRecentSessionRecencyMs (): Long =
897- lastActivityAt ? : updatedAtMs ? : Long .MIN_VALUE
893+ private fun ChatSessionEntry.overviewRecentSessionRecencyMs (): Long = lastActivityAt ? : updatedAtMs ? : Long .MIN_VALUE
898894
899895internal data class OverviewMetricCard (
900896 val title : String ,
You can’t perform that action at this time.
0 commit comments