Changeset 10021
- Timestamp:
- 07/25/08 00:14:42 (6 weeks ago)
- Location:
- trunk/src
- Files:
-
- 2 modified
-
chat_control.py (modified) (1 diff)
-
gajim.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/chat_control.py
r10019 r10021 2263 2263 if not e2e_is_active and e2e_pref and \ 2264 2264 not self.no_autonegotiation and gajim.HAVE_PYCRYPTO \ 2265 and e2e_pref and gajim.capscache.is_supported(2266 self.contact, NS_ESESSION) and not \2267 gajim.capscache.is_supported(self.contact,2268 'notexistant'):2265 and gajim.capscache.is_supported(self.contact, 2266 NS_ESESSION) and not gajim.capscache.is_supported( 2267 self.contact, 'notexistant'): 2268 self.begin_e2e_negotiation() 2269 2269 self.no_autonegotiation = True 2270 self.begin_e2e_negotiation()2271 2270 else: 2272 2271 self.send_chatstate('active', self.contact) -
trunk/src/gajim.py
r10012 r10021 777 777 # disable encryption, since if any messages are 778 778 # lost they'll be not decryptable (note that 779 # this contradicts XEP-0201 - trying to get th e779 # this contradicts XEP-0201 - trying to get that 780 780 # in the XEP, though) 781 # 782 # FIXME: This *REALLY* are TOO many leves of 783 # indentation! We even need to introduce 784 # a temp var here to make it somehow fit! 781 785 if gajim.connections[account].sessions. \ 782 786 has_key(ji): 783 787 for sess in gajim.connections \ 784 788 [account]. sessions[ji].values(): 789 ctrl = sess.control 790 if ctrl: 791 ctrl.no_autonegotiation\ 792 = False 785 793 if sess.enable_encryption: 786 794 sess.terminate_e2e()
