diff options
| author | 2025-05-19 11:39:15 +0100 | |
|---|---|---|
| committer | 2025-05-19 11:39:15 +0100 | |
| commit | 7b3ed73184f375004af6db62654af0e69e7d14d3 (patch) | |
| tree | b8c11e848f475bb0c8f31641c13e032b5fac7714 /filamento/src/logic/local_only.rs | |
| parent | 97ad4e3403bf0d9c3a4a030a377ec6fde31b166e (diff) | |
| download | luz-7b3ed73184f375004af6db62654af0e69e7d14d3.tar.gz luz-7b3ed73184f375004af6db62654af0e69e7d14d3.tar.bz2 luz-7b3ed73184f375004af6db62654af0e69e7d14d3.zip | |
feat(filamento): read_chat_and_user()
Diffstat (limited to '')
| -rw-r--r-- | filamento/src/logic/local_only.rs | 7 |
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, |
