tokio-xmpp: name Event::Online fields, add resumed flag

This commit is contained in:
Astro 2020-03-17 22:39:23 +01:00
commit 4d24e6bebb
2 changed files with 18 additions and 4 deletions

View file

@ -193,7 +193,10 @@ impl Stream for Client {
Poll::Ready(Ok(Ok(stream))) => {
let bound_jid = stream.jid.clone();
self.state = ClientState::Connected(stream);
Poll::Ready(Some(Event::Online(bound_jid)))
Poll::Ready(Some(Event::Online {
bound_jid,
resumed: false,
}))
}
Poll::Ready(Ok(Err(e))) => {
self.state = ClientState::Disconnected;