xmpp: RoomNick is newtype wrapper for ResourcePart
This commit is contained in:
parent
5477cf1240
commit
3fd8285a29
6 changed files with 53 additions and 14 deletions
|
|
@ -9,7 +9,7 @@ use tokio_xmpp::{
|
|||
parsers::{message::Message, muc::user::MucUser},
|
||||
};
|
||||
|
||||
use crate::{delay::StanzaTimeInfo, Agent, Event};
|
||||
use crate::{delay::StanzaTimeInfo, Agent, Event, RoomNick};
|
||||
|
||||
pub async fn handle_message_chat(
|
||||
agent: &mut Agent,
|
||||
|
|
@ -38,7 +38,7 @@ pub async fn handle_message_chat(
|
|||
Ok(full) => Event::RoomPrivateMessage(
|
||||
message.id.clone(),
|
||||
full.to_bare(),
|
||||
full.resource().into(),
|
||||
RoomNick::from_resource_ref(full.resource()),
|
||||
body.clone(),
|
||||
time_info.clone(),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue