negotiate esession only if enable_esessions is activated. Fixes #4738
This commit is contained in:
parent
ac05e57aa7
commit
d673e04935
|
@ -2409,10 +2409,10 @@ class ChatControl(ChatControlBase):
|
||||||
|
|
||||||
e2e_is_active = self.session and \
|
e2e_is_active = self.session and \
|
||||||
self.session.enable_encryption
|
self.session.enable_encryption
|
||||||
e2e_pref = gajim.config.get_per('accounts',
|
e2e_pref = gajim.config.get_per('accounts', self.account,
|
||||||
self.account, 'autonegotiate_esessions') and \
|
'enable_esessions') and gajim.config.get_per('accounts',
|
||||||
gajim.config.get_per('contacts',
|
self.account, 'autonegotiate_esessions') and gajim.config.get_per(
|
||||||
self.contact.jid, 'autonegotiate_esessions')
|
'contacts', self.contact.jid, 'autonegotiate_esessions')
|
||||||
want_e2e = not e2e_is_active and not self.gpg_is_active \
|
want_e2e = not e2e_is_active and not self.gpg_is_active \
|
||||||
and e2e_pref
|
and e2e_pref
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue