From 5b7ae2b9ae97eda513c71ba922221e864eea4ce3 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Fri, 24 May 2024 10:48:49 +0200 Subject: [PATCH] Change default ordering --- crates/lavina-core/src/repo/room.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/lavina-core/src/repo/room.rs b/crates/lavina-core/src/repo/room.rs index 81d0398..98b46dd 100644 --- a/crates/lavina-core/src/repo/room.rs +++ b/crates/lavina-core/src/repo/room.rs @@ -48,7 +48,7 @@ impl Storage { where room_id = ? order by - created_at desc; + messages.id desc; ", ) .bind(room_id)