xmpp: RoomNick is newtype wrapper for ResourcePart

This commit is contained in:
xmppftw xmppftw 2024-12-18 12:44:59 +01:00 committed by xmpp ftw
commit 3fd8285a29
6 changed files with 53 additions and 14 deletions

View file

@ -21,7 +21,7 @@ pub async fn send_room_private_message(
lang: &str,
text: &str,
) {
let recipient: Jid = room.with_resource_str(&recipient).unwrap().into();
let recipient: Jid = room.with_resource(recipient.as_ref()).into();
let mut message = Message::new(recipient).with_payload(MucUser::new());
message.type_ = MessageType::Chat;
message