add jid to Event::Online

breaks the API
This commit is contained in:
Astro 2019-10-15 22:02:14 +02:00
commit 9a5c95694b
4 changed files with 18 additions and 6 deletions

View file

@ -90,7 +90,7 @@ impl Stream for Component {
ComponentState::Connecting(mut connect) => match connect.poll() {
Ok(Async::Ready(stream)) => {
self.state = ComponentState::Connected(stream);
Ok(Async::Ready(Some(Event::Online)))
Ok(Async::Ready(Some(Event::Online(self.jid.clone()))))
}
Ok(Async::NotReady) => {
self.state = ComponentState::Connecting(connect);