From f1540591930aff9d9f584e6ce028c2e49cba1be2 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Mon, 12 May 2025 18:29:03 +0100 Subject: fix(filamento): stanza error panic --- filamento/src/logic/process_stanza.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'filamento/src/logic') diff --git a/filamento/src/logic/process_stanza.rs b/filamento/src/logic/process_stanza.rs index 3bc4b8c..30d0830 100644 --- a/filamento/src/logic/process_stanza.rs +++ b/filamento/src/logic/process_stanza.rs @@ -479,13 +479,7 @@ pub async fn recv_presence( stanza::client::presence::PresenceType::Error => { // TODO: is there any other information that should go with the error? also MUST have an error, otherwise it's a different error. maybe it shoulnd't be an option. // TODO: ughhhhhhhhhhhhh these stanza errors should probably just have an option, and custom display - Err(PresenceError::StanzaError( - presence - .errors - .first() - .cloned() - .expect("error MUST have error"), - )) + Err(PresenceError::StanzaError(presence.errors.first().cloned())) } // should not happen (error to server) stanza::client::presence::PresenceType::Probe => { -- cgit