check if remote contact support esession or session. If it supports esession, it supports session but may not announce it. see #4429
This commit is contained in:
		
							parent
							
								
									bb33069da9
								
							
						
					
					
						commit
						e90375bad3
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -2186,7 +2186,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
 | 
			
		|||
					contact = gajim.contacts.get_contact(self.name, jid_stripped)
 | 
			
		||||
 | 
			
		||||
					session_supported = gajim.capscache.is_supported(contact,
 | 
			
		||||
						common.xmpp.NS_SSN)
 | 
			
		||||
						common.xmpp.NS_SSN) or gajim.capscache.is_supported(contact,
 | 
			
		||||
						common.xmpp.NS_ESESSION)
 | 
			
		||||
					if session_supported:
 | 
			
		||||
						sess.terminate()
 | 
			
		||||
						del self.sessions[jid_stripped][sess.thread_id]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue