echo_bot: use xmpp-parsers to parse message
This commit is contained in:
parent
fc0973539f
commit
00e2daaecd
2 changed files with 20 additions and 13 deletions
|
|
@ -28,4 +28,11 @@ impl Event {
|
|||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn into_stanza(self) -> Option<Element> {
|
||||
match self {
|
||||
Event::Stanza(stanza) => Some(stanza),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue