xmpp: Merge Agent configuration into new Config struct
Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
parent
147b79ca52
commit
a1a31ce11c
8 changed files with 65 additions and 68 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue