xmpp-parsers: Simplify PubSub Item using xso

Now that we can have a single arbitrary payload, we can derive FromXml
and AsXml on the Item.
This commit is contained in:
Emmanuel Gil Peyrot 2024-12-20 19:05:07 +01:00 committed by Jonas Schäfer
commit f63b780089
7 changed files with 55 additions and 115 deletions

View file

@ -123,7 +123,6 @@ pub(crate) async fn handle_iq_result(
let mut new_room_list: Vec<BareJid> = Vec::new();
for item in items.items {
let item = item.0;
let jid = BareJid::from_str(&item.id.clone().unwrap().0).unwrap();
let payload = item.payload.clone().unwrap();
match bookmarks2::Conference::try_from(payload) {