Send Presence probe on unblock

This commit is contained in:
Philipp Hörist 2017-10-15 20:22:25 +02:00
parent 2446c7e3ed
commit 29cf416da4
2 changed files with 6 additions and 0 deletions

View File

@ -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:

View File

@ -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: