don't autonegotiate if gpg is already active
This commit is contained in:
parent
36f286f808
commit
d8070318ff
1 changed files with 5 additions and 2 deletions
|
@ -2264,10 +2264,13 @@ class ChatControl(ChatControlBase):
|
||||||
self.account, 'autonegotiate_esessions') and \
|
self.account, 'autonegotiate_esessions') and \
|
||||||
gajim.config.get_per('contacts',
|
gajim.config.get_per('contacts',
|
||||||
self.contact.jid, 'autonegotiate_esessions')
|
self.contact.jid, 'autonegotiate_esessions')
|
||||||
|
want_e2e = not e2e_is_active and not self.gpg_is_active \
|
||||||
|
and e2e_pref
|
||||||
|
|
||||||
# XXX: Once we have fallback to disco, remove
|
# XXX: Once we have fallback to disco, remove
|
||||||
# notexistant check
|
# notexistant check
|
||||||
if not e2e_is_active and e2e_pref and \
|
if want_e2e and not self.no_autonegotiation \
|
||||||
not self.no_autonegotiation and gajim.HAVE_PYCRYPTO \
|
and gajim.HAVE_PYCRYPTO \
|
||||||
and gajim.capscache.is_supported(self.contact,
|
and gajim.capscache.is_supported(self.contact,
|
||||||
NS_ESESSION) and not gajim.capscache.is_supported(
|
NS_ESESSION) and not gajim.capscache.is_supported(
|
||||||
self.contact, 'notexistant'):
|
self.contact, 'notexistant'):
|
||||||
|
|
Loading…
Add table
Reference in a new issue