fix some propagation issues

This commit is contained in:
Emmanuel Gil Peyrot 2017-05-27 20:43:08 +01:00
parent cbff1a7e9b
commit a8c64e1d4a
2 changed files with 5 additions and 1 deletions

View file

@ -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 {

View file

@ -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