Philipp Hörist pushed to branch master at gajim / gajim
Commits:
21c6be64 by lovetox at 2020-06-03T20:03:49+02:00
Client: Raise our-show event on resume
- - - - -
1 changed file:
- gajim/common/client.py
Changes:
=====================================
gajim/common/client.py
=====================================
@@ -226,6 +226,14 @@ class Client(ConnectionHandlers):
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)
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/21c6be642c29070a023fef56ab2aa017a308fe24
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/21c6be642c29070a023fef56ab2aa017a308fe24
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits