mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
fix some propagation issues
This commit is contained in:
parent
cbff1a7e9b
commit
a8c64e1d4a
2 changed files with 5 additions and 1 deletions
|
@ -49,9 +49,10 @@ impl PingPlugin {
|
|||
from: iq.from.unwrap(),
|
||||
id: iq.id.unwrap(),
|
||||
});
|
||||
return Propagation::Stop;
|
||||
}
|
||||
}
|
||||
Propagation::Stop
|
||||
Propagation::Continue
|
||||
}
|
||||
|
||||
fn reply_ping(&self, ping: &PingEvent) -> Propagation {
|
||||
|
|
|
@ -38,6 +38,9 @@ impl StanzaPlugin {
|
|||
} else if elem.is("iq", ns::CLIENT) {
|
||||
let iq = Iq::try_from(elem).unwrap();
|
||||
self.proxy.dispatch(iq);
|
||||
} else {
|
||||
// TODO: handle nonzas too.
|
||||
return Propagation::Continue;
|
||||
}
|
||||
|
||||
Propagation::Stop
|
||||
|
|
Loading…
Reference in a new issue