Skip to content
Snippets Groups Projects
Commit 21c6be64 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Client: Raise our-show event on resume

parent 198cf3dd
No related branches found
No related tags found
No related merge requests found
......@@ -226,6 +226,14 @@ def _on_resume_successful(self, _client, _signal_name):
if self._status_sync_on_resume:
self._status_sync_on_resume = False
self.update_presence()
else:
# Normally show is updated when we receive a presence reflection.
# On resume, if show has not changed while offline, we dont send
# a new presence so we have to trigger the event here.
app.nec.push_incoming_event(
NetworkEvent('our-show',
account=self._account,
show=self._status))
def _set_client_available(self):
self._set_state(ClientState.AVAILABLE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment