use jid_is_transport func to detect transport jid
This commit is contained in:
		
							parent
							
								
									5a9625ff90
								
							
						
					
					
						commit
						1e6c848761
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -937,7 +937,7 @@ class ChatControl(ChatControlBase):
 | 
				
			||||||
		# we can do gpg
 | 
							# we can do gpg
 | 
				
			||||||
		# if self.contact is our own contact info (transports), 
 | 
							# if self.contact is our own contact info (transports), 
 | 
				
			||||||
		# don't enable pgp
 | 
							# don't enable pgp
 | 
				
			||||||
		if self.contact.keyID and self.contact.jid.find('@') != -1: 
 | 
							if self.contact.keyID and not gajim.jid_is_transport(self.contact.jid): 
 | 
				
			||||||
			tb.set_sensitive(True)
 | 
								tb.set_sensitive(True)
 | 
				
			||||||
			tt = _('OpenPGP Encryption')
 | 
								tt = _('OpenPGP Encryption')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue