Changeset 10159
- Timestamp:
- 08/09/08 00:55:12 (4 months ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
chat_control.py (modified) (2 diffs)
-
gajim.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chat_control.py
r10157 r10159 1154 1154 1155 1155 # Enable encryption if needed 1156 self.no_autonegotiation = False1157 1156 e2e_is_active = self.session and self.session.enable_encryption 1158 1157 self.gpg_is_active = False … … 2326 2325 gajim.config.get_per('contacts', 2327 2326 self.contact.jid, 'autonegotiate_esessions') 2327 2328 2328 want_e2e = not e2e_is_active and not self.gpg_is_active \ 2329 2329 and e2e_pref 2330 2330 2331 already_negotiating = bool(self.session and \ 2332 self.session.status) 2333 2331 2334 # XXX: Once we have fallback to disco, remove 2332 2335 # notexistant check 2333 if want_e2e and not self.no_autonegotiation \ 2334 and gajim.HAVE_PYCRYPTO \ 2335 and gajim.capscache.is_supported(self.contact, 2336 NS_ESESSION) and not gajim.capscache.is_supported( 2337 self.contact, 'notexistant'): 2336 can_e2e = gajim.HAVE_PYCRYPTO and gajim.capscache. \ 2337 is_supported(self.contact, NS_ESESSION) and \ 2338 not gajim.capscache.is_supported(self.contact, 2339 'notexistant') 2340 2341 if want_e2e and not already_negotiating and can_e2e: 2338 2342 self.begin_e2e_negotiation() 2339 self.no_autonegotiation = True2340 2343 else: 2341 2344 self.send_chatstate('active', self.contact) -
trunk/src/gajim.py
r10145 r10159 817 817 if (ji+'/'+resource) != str(sess.jid): 818 818 continue 819 ctrl = sess.control820 if ctrl:821 ctrl.no_autonegotiation = False822 819 if sess.enable_encryption: 823 820 sess.terminate_e2e()
