diff --git a/gajim/common/client.py b/gajim/common/client.py index c32e813cfdfed7240b2a150ac9653331889940fe..c32647e8591125d770aa54fd974a6d517e169ce6 100644 --- a/gajim/common/client.py +++ b/gajim/common/client.py @@ -178,6 +178,9 @@ def _on_resume_failed(self, _client, _signal_name): def _on_resume_successful(self, _client, _signal_name): self._set_state(ClientState.CONNECTED) + app.nec.push_incoming_event(NetworkEvent('account-connected', + account=self._account)) + app.nec.push_incoming_event( OurShowEvent(None, conn=self, show=self._status)) @@ -267,6 +270,8 @@ def _on_connection_failed(self, _client, _signal_name): def _on_connected(self, client, _signal_name): self._set_state(ClientState.CONNECTED) + app.nec.push_incoming_event(NetworkEvent('account-connected', + account=self._account)) self.get_module('Discovery').discover_server_info() self.get_module('Discovery').discover_account_info() self.get_module('Discovery').discover_server_items()