xmpp: Use the new FullJid::resource_str() method

This commit is contained in:
Emmanuel Gil Peyrot 2023-08-05 18:07:53 +02:00 committed by pep
parent e6595762f6
commit b28c843eff

View file

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