use jid_is_transport func to detect transport jid

This commit is contained in:
Yann Leboulanger 2006-05-01 13:29:16 +00:00
parent 5a9625ff90
commit 1e6c848761
1 changed files with 1 additions and 1 deletions

View File

@ -937,7 +937,7 @@ class ChatControl(ChatControlBase):
# we can do gpg
# if self.contact is our own contact info (transports),
# 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)
tt = _('OpenPGP Encryption')