xmpp: Make bound_jid a FullJid

This commit is contained in:
Link Mauve 2026-06-11 14:52:58 +02:00
commit 59e803bd7e
2 changed files with 3 additions and 2 deletions

View file

@ -28,6 +28,7 @@ XXXX-YY-ZZ [ RELEASER <admin@localhost> ]
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.

View file

@ -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()
}
}