From 1e6c848761c46f4d27f2f5d8f0ccc31c99703f1d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 1 May 2006 13:29:16 +0000 Subject: [PATCH] use jid_is_transport func to detect transport jid --- src/chat_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index eec9cd718..cf6e60e8f 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -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')