From 15faa6b95ffb5c64a56e212cf386c29fef56efc8 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Fri, 11 Apr 2025 07:52:11 +0100 Subject: feat(filamento): `get_chats_ordered_with_latest_messages_and_users()` --- filamento/src/logic/local_only.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'filamento/src/logic/local_only.rs') diff --git a/filamento/src/logic/local_only.rs b/filamento/src/logic/local_only.rs index 9db9d4d..dc94d2c 100644 --- a/filamento/src/logic/local_only.rs +++ b/filamento/src/logic/local_only.rs @@ -28,6 +28,15 @@ pub async fn handle_get_chats_ordered_with_latest_messages( + logic: &ClientLogic, +) -> Result, DatabaseError> { + Ok(logic + .db() + .read_chats_ordered_with_latest_messages_and_users() + .await?) +} + pub async fn handle_get_chat( logic: &ClientLogic, jid: JID, -- cgit