xmpp-parsers/jingle: Fix Jingle::set_reason() helper.
It would add a content currently…
This commit is contained in:
parent
59ccccbedc
commit
026b7d3c12
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue