make use of the gen_id() method in relevant plugins

This commit is contained in:
Emmanuel Gil Peyrot 2017-05-29 04:51:01 +01:00
commit 785f717f91
3 changed files with 3 additions and 5 deletions

View file

@ -53,8 +53,7 @@ impl PingPlugin {
self.proxy.send(Iq {
from: None,
to: Some(to),
// TODO: use a generic way to generate ids.
id: Some(String::from("id")),
id: Some(self.proxy.gen_id()),
payload: IqType::Get(IqPayload::Ping(Ping).into()),
}.into());
Ok(())