From b28c843eff66528fb233f66070a93100bd10e403 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 5 Aug 2023 18:07:53 +0200 Subject: [PATCH] xmpp: Use the new FullJid::resource_str() method --- xmpp/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index d9096e6e..f5528ad4 100644 --- a/xmpp/src/lib.rs +++ b/xmpp/src/lib.rs @@ -368,7 +368,7 @@ impl Agent { Jid::Full(full) => Event::RoomMessage( message.id.clone(), from.to_bare(), - full.resource().to_owned(), + full.resource_str().to_owned(), body.clone(), ), Jid::Bare(bare) => { @@ -391,7 +391,7 @@ impl Agent { Jid::Full(full) => Event::RoomPrivateMessage( message.id.clone(), full.to_bare(), - full.resource().to_owned(), + full.resource_str().to_owned(), body.clone(), ), };