aboutsummaryrefslogtreecommitdiffstats
path: root/filamento/src/logic/local_only.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--filamento/src/logic/local_only.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/filamento/src/logic/local_only.rs b/filamento/src/logic/local_only.rs
index a22efbd..f5705f4 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<Fs: FileStore + Clone>(
Ok(logic.db().read_chat(jid).await?)
}
+pub async fn handle_get_chat_and_user<Fs: FileStore + Clone>(
+ logic: &ClientLogic<Fs>,
+ jid: JID,
+) -> Result<(Chat, User), DatabaseError> {
+ Ok(logic.db().read_chat_and_user(jid).await?)
+}
+
pub async fn handle_get_message<Fs: FileStore + Clone>(
logic: &ClientLogic<Fs>,
id: Uuid,