impl chat screen in giga wear

This commit is contained in:
2026-09-13 10:46:52 +03:00
parent 08a7c008a1
commit 688d687d4d
14 changed files with 385 additions and 55 deletions
@@ -25,6 +25,6 @@ fun Application.module() {
install(ContentNegotiation) { json(koin.get()) }
routing {
get("health") { this.call.respond(HttpStatusCode.OK) }
setupChat(koin.get(), koin.get())
setupChat(koin.get())
}
}
@@ -29,7 +29,7 @@ class MessageStorageImpl : MessageStorage {
} else {
userMessages
}
return filteredList.take(limit).toList()
return filteredList.reversed().take(limit).sortedBy { it.timestamp }
}
}