mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
xmpp: Use the new FullJid::resource_str() method
This commit is contained in:
parent
e6595762f6
commit
b28c843eff
1 changed files with 2 additions and 2 deletions
|
@ -368,7 +368,7 @@ impl Agent {
|
||||||
Jid::Full(full) => Event::RoomMessage(
|
Jid::Full(full) => Event::RoomMessage(
|
||||||
message.id.clone(),
|
message.id.clone(),
|
||||||
from.to_bare(),
|
from.to_bare(),
|
||||||
full.resource().to_owned(),
|
full.resource_str().to_owned(),
|
||||||
body.clone(),
|
body.clone(),
|
||||||
),
|
),
|
||||||
Jid::Bare(bare) => {
|
Jid::Bare(bare) => {
|
||||||
|
@ -391,7 +391,7 @@ impl Agent {
|
||||||
Jid::Full(full) => Event::RoomPrivateMessage(
|
Jid::Full(full) => Event::RoomPrivateMessage(
|
||||||
message.id.clone(),
|
message.id.clone(),
|
||||||
full.to_bare(),
|
full.to_bare(),
|
||||||
full.resource().to_owned(),
|
full.resource_str().to_owned(),
|
||||||
body.clone(),
|
body.clone(),
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue