diff options
Diffstat (limited to 'filamento/src/logic/offline.rs')
-rw-r--r-- | filamento/src/logic/offline.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/filamento/src/logic/offline.rs b/filamento/src/logic/offline.rs index e864f22..7dfb394 100644 --- a/filamento/src/logic/offline.rs +++ b/filamento/src/logic/offline.rs @@ -2,7 +2,7 @@ use lampada::error::WriteError; use crate::{ Command, - error::{DatabaseError, Error, RosterError, StatusError}, + error::{DatabaseError, DiscoError, Error, RosterError, StatusError}, presence::Online, roster::Contact, }; @@ -113,6 +113,9 @@ pub async fn handle_offline_result(logic: &ClientLogic, command: Command) -> Res Command::SendPresence(_jid, _presence, sender) => { sender.send(Err(WriteError::Disconnected)); } + Command::DiscoInfo(_jid, sender) => { + sender.send(Err(DiscoError::Write(WriteError::Disconnected))); + } } Ok(()) } |