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/offline.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/offline.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/filamento/src/logic/offline.rs b/filamento/src/logic/offline.rs index 42a38ca..606b04f 100644 --- a/filamento/src/logic/offline.rs +++ b/filamento/src/logic/offline.rs @@ -19,13 +19,9 @@ use crate::{ }; use super::{ - ClientLogic, local_only::{ - handle_delete_chat, handle_delete_messaage, handle_get_chat, handle_get_chats, - handle_get_chats_ordered, handle_get_chats_ordered_with_latest_messages, - handle_get_chats_ordered_with_latest_messages_and_users, handle_get_message, - handle_get_messages, handle_get_messages_with_users, handle_get_user, - }, + handle_delete_chat, handle_delete_messaage, handle_get_chat, handle_get_chat_and_user, handle_get_chats, handle_get_chats_ordered, handle_get_chats_ordered_with_latest_messages, handle_get_chats_ordered_with_latest_messages_and_users, handle_get_message, handle_get_messages, handle_get_messages_with_users, handle_get_user + }, ClientLogic }; pub async fn handle_offline<Fs: FileStore + Clone>(logic: ClientLogic<Fs>, command: Command<Fs>) { @@ -89,6 +85,10 @@ pub async fn handle_offline_result<Fs: FileStore + Clone>( let chats = handle_get_chat(logic, jid).await; sender.send(chats); } + Command::GetChatAndUser(jid, sender) => { + let chat = handle_get_chat_and_user(logic, jid).await; + let _ = sender.send(chat); + } Command::GetMessage(id, sender) => { let message = handle_get_message(logic, id).await; let _ = sender.send(message); |