Merge branch 'propagation' into 'master'

Fix some propagation issues

See merge request !15
This commit is contained in:
lumi 2017-05-27 21:51:58 +00:00
commit 8ba7a332c1
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