Merge branch 'propagation' into 'master'
Fix some propagation issues See merge request !15
This commit is contained in:
commit
8ba7a332c1
2 changed files with 5 additions and 1 deletions
|
|
@ -49,9 +49,10 @@ impl PingPlugin {
|
||||||
from: iq.from.unwrap(),
|
from: iq.from.unwrap(),
|
||||||
id: iq.id.unwrap(),
|
id: iq.id.unwrap(),
|
||||||
});
|
});
|
||||||
|
return Propagation::Stop;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Propagation::Stop
|
Propagation::Continue
|
||||||
}
|
}
|
||||||
|
|
||||||
fn reply_ping(&self, ping: &PingEvent) -> Propagation {
|
fn reply_ping(&self, ping: &PingEvent) -> Propagation {
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,9 @@ impl StanzaPlugin {
|
||||||
} else if elem.is("iq", ns::CLIENT) {
|
} else if elem.is("iq", ns::CLIENT) {
|
||||||
let iq = Iq::try_from(elem).unwrap();
|
let iq = Iq::try_from(elem).unwrap();
|
||||||
self.proxy.dispatch(iq);
|
self.proxy.dispatch(iq);
|
||||||
|
} else {
|
||||||
|
// TODO: handle nonzas too.
|
||||||
|
return Propagation::Continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
Propagation::Stop
|
Propagation::Stop
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue