From 29cf416da4fb9b396c40728a0ac7d0da0eb37156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sun, 15 Oct 2017 20:22:25 +0200 Subject: [PATCH] Send Presence probe on unblock --- gajim/common/connection.py | 3 +++ gajim/common/connection_handlers.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/gajim/common/connection.py b/gajim/common/connection.py index 7159dd908..87d29f9a8 100644 --- a/gajim/common/connection.py +++ b/gajim/common/connection.py @@ -1687,6 +1687,9 @@ class Connection(CommonConnection, ConnectionHandlers): return for contact in contact_list: self.send_custom_status(show, self.status, contact.jid) + # Send a presence Probe to get the current Status + probe = nbxmpp.Presence(contact.jid, 'probe', frm=self.get_own_jid()) + self.connection.send(probe) def block_group(self, group, contact_list, message): if not self.privacy_rules_supported: diff --git a/gajim/common/connection_handlers.py b/gajim/common/connection_handlers.py index 0fdf4a13c..fa13dee65 100644 --- a/gajim/common/connection_handlers.py +++ b/gajim/common/connection_handlers.py @@ -2107,6 +2107,9 @@ ConnectionHandlersBase, ConnectionJingle, ConnectionIBBytestream): for jid in obj.unblocked_jids: if jid in self.blocked_contacts: self.blocked_contacts.remove(jid) + # Send a presence Probe to get the current Status + probe = nbxmpp.Presence(jid, 'probe', frm=self.get_own_jid()) + self.connection.send(probe) def _nec_stream_other_host_received(self, obj): if obj.conn.name != self.name: