From ecd0be4aad985e9812626d6c4499c2586c158aba Mon Sep 17 00:00:00 2001 From: Werner Kroneman Date: Fri, 8 Dec 2023 20:34:44 +0100 Subject: [PATCH] Removed weird duplicate RoomJoined at the end of the method. --- xmpp/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index f916a2ff..d3913575 100644 --- a/xmpp/src/lib.rs +++ b/xmpp/src/lib.rs @@ -263,7 +263,6 @@ impl Agent { lang: impl Into, status: impl Into, ) { - // XEP-0045 specifies that, to leave a room, the client must send a presence stanza // with type="unavailable". let mut presence = Presence::new(PresenceType::Unavailable).with_to( @@ -496,8 +495,6 @@ impl Agent { } _ => unimplemented!("Presence type {:?}", presence.type_), // TODO: What to do here? } - - events.push(Event::RoomJoined(from.clone())); } }