diff --git a/xmpp/ChangeLog b/xmpp/ChangeLog index 03a104a3..a587aa03 100644 --- a/xmpp/ChangeLog +++ b/xmpp/ChangeLog @@ -28,6 +28,7 @@ XXXX-YY-ZZ [ RELEASER ] Please refer to the crate docs for details. (!581) - Allow joining an already joined room with `Agent::join_room` to enable resyncs. Adds a parameter to `muc::room::JoinRoomSettings`. + - Make bound_jid a FullJid. (!687) * Changed: - Replaced unimplemented! with info! calls. - Only send `Event::RoomSubject` when there's no body as per 0045. diff --git a/xmpp/src/agent.rs b/xmpp/src/agent.rs index 6b526822..8f81a00a 100644 --- a/xmpp/src/agent.rs +++ b/xmpp/src/agent.rs @@ -13,7 +13,7 @@ use tokio::sync::RwLock; use crate::{ Config, Error, Event, RoomNick, event_loop, - jid::{BareJid, Jid}, + jid::{BareJid, FullJid, Jid}, message, muc, parsers::disco::DiscoInfoResult, upload, @@ -111,7 +111,7 @@ impl Agent { /// Get the bound jid of the client. /// /// If the client is not connected, this will be None. - pub fn bound_jid(&self) -> Option<&Jid> { + pub fn bound_jid(&self) -> Option<&FullJid> { self.client.bound_jid() } }