Send Presence probe on unblock
This commit is contained in:
		
							parent
							
								
									2446c7e3ed
								
							
						
					
					
						commit
						29cf416da4
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		|  | @ -1687,6 +1687,9 @@ class Connection(CommonConnection, ConnectionHandlers): | ||||||
|             return |             return | ||||||
|         for contact in contact_list: |         for contact in contact_list: | ||||||
|             self.send_custom_status(show, self.status, contact.jid) |             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): |     def block_group(self, group, contact_list, message): | ||||||
|         if not self.privacy_rules_supported: |         if not self.privacy_rules_supported: | ||||||
|  |  | ||||||
|  | @ -2107,6 +2107,9 @@ ConnectionHandlersBase, ConnectionJingle, ConnectionIBBytestream): | ||||||
|             for jid in obj.unblocked_jids: |             for jid in obj.unblocked_jids: | ||||||
|                 if jid in self.blocked_contacts: |                 if jid in self.blocked_contacts: | ||||||
|                     self.blocked_contacts.remove(jid) |                     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): |     def _nec_stream_other_host_received(self, obj): | ||||||
|         if obj.conn.name != self.name: |         if obj.conn.name != self.name: | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue