add jid to Event::Online
breaks the API
This commit is contained in:
parent
16458dedf1
commit
9a5c95694b
4 changed files with 18 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue