xmpp: Merge Agent configuration into new Config struct

Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
pep 2025-11-13 23:57:50 +01:00
commit a1a31ce11c
8 changed files with 65 additions and 68 deletions

View file

@ -78,7 +78,8 @@ pub async fn join_room<'a>(agent: &mut Agent, settings: JoinRoomSettings<'a>) {
let nick = if let Some(nick) = nick {
nick
} else {
agent.default_nick.read().await.clone()
let config = agent.config.read().await;
config.default_nick.clone()
};
let room_jid = room.with_resource(&nick);