Send Presence probe on unblock
This commit is contained in:
parent
2446c7e3ed
commit
29cf416da4
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue