diff --git a/xmpp-parsers/src/jingle.rs b/xmpp-parsers/src/jingle.rs index 31cb8388..5db03c06 100644 --- a/xmpp-parsers/src/jingle.rs +++ b/xmpp-parsers/src/jingle.rs @@ -586,8 +586,8 @@ impl Jingle { } /// Set the reason in this Jingle container. - pub fn set_reason(mut self, content: Content) -> Jingle { - self.contents.push(content); + pub fn set_reason(mut self, reason: ReasonElement) -> Jingle { + self.reason = Some(reason); self } }