diff --git a/src/muc/user.rs b/src/muc/user.rs index 8baa627..bffcbcd 100644 --- a/src/muc/user.rs +++ b/src/muc/user.rs @@ -155,6 +155,20 @@ generate_element!( ] ); +impl Item { + pub fn new(affiliation: Affiliation, role: Role) -> Item { + Item { + affiliation, + role, + jid: None, + nick: None, + actor: None, + continue_: None, + reason: None, + } + } +} + generate_element!( MucUser, "x", MUC_USER, children: [ status: Vec = ("status", MUC_USER) => Status,