From 42c7423667a2d6acdebca75250ad30c5d475081b Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Mon, 28 Apr 2025 19:53:11 +0100 Subject: feat: serde --- filamento/src/logic/local_only.rs | 7 +++++++ 1 file changed, 7 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 dc94d2c..a22efbd 100644 --- a/filamento/src/logic/local_only.rs +++ b/filamento/src/logic/local_only.rs @@ -44,6 +44,13 @@ pub async fn handle_get_chat( Ok(logic.db().read_chat(jid).await?) } +pub async fn handle_get_message( + logic: &ClientLogic, + id: Uuid, +) -> Result { + Ok(logic.db().read_message(id).await?) +} + pub async fn handle_get_messages( logic: &ClientLogic, jid: JID, -- cgit