From d102966198cae443c6d28518f8b81e8c3fcaa415 Mon Sep 17 00:00:00 2001 From: Radical Date: Thu, 29 May 2025 16:11:13 +0200 Subject: [PATCH] fix: fetch messages properly --- src/structs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/structs.rs b/src/structs.rs index 1efa820..eb89980 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -274,6 +274,7 @@ impl Channel { dsl::messages .filter(dsl::channel_uuid.eq(self.uuid)) .select(MessageBuilder::as_select()) + .order(dsl::uuid.desc()) .limit(amount) .offset(offset) .load(&mut conn)