diff --git a/src/session.rs b/src/session.rs index bd2a182..991bd5a 100644 --- a/src/session.rs +++ b/src/session.rs @@ -32,9 +32,12 @@ impl Session { presence.payloads.retain(|payload| { // TODO: Add a ::is_a method in xmpp-parsers which takes a ref to avoid having to // clone, and use this instead. + // TODO: This method will require knowledge of the domain it's been attributed to be + // able to strip payloads which use it (e.g., delay, stanza-id). // TODO: Finish this list !(Element::is(payload, "x", "http://jabber.org/protocol/muc") || Element::is(payload, "x", "http://jabber.org/protocol/muc#user") + || Element::is(payload, "x", "http://jabber.org/protocol/muc#admin") || Element::is(payload, "x", "http://jabber.org/protocol/muc#owner") || Element::is(payload, "occupant-id", "urn:xmpp:occupant-id:0")) });