impl chat screen in giga wear
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ class MessageStorageImpl : MessageStorage {
|
||||
} else {
|
||||
userMessages
|
||||
}
|
||||
return filteredList.take(limit).toList()
|
||||
return filteredList.reversed().take(limit).sortedBy { it.timestamp }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user