Show
Ignore:
Timestamp:
07/20/08 17:06:21 (4 months ago)
Author:
bct
Message:

make esession autonegotiation option per-account and per-jid

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/chat_control.py

    r9964 r9970  
    11361136                gpg_pref = gajim.config.get_per('contacts', contact.jid, 
    11371137                        'gpg_enabled') 
     1138                e2e_pref = gajim.config.get_per('accounts', self.account, 
     1139                        'autonegotiate_esessions') and gajim.config.get_per('contacts', 
     1140                        contact.jid, 'autonegotiate_esessions') 
    11381141 
    11391142                # try GPG first 
     
    11561159                # then try E2E 
    11571160                # XXX: Once we have fallback to disco, remove notexistant check 
    1158                 elif not e2e_is_active and gajim.HAVE_PYCRYPTO \ 
    1159                 and gajim.config.get('autonegotiate_esessions') \ 
     1161                elif not e2e_is_active and gajim.HAVE_PYCRYPTO and e2e_pref \ 
    11601162                and gajim.capscache.is_supported(contact, NS_ESESSION) \ 
    11611163                and not gajim.capscache.is_supported(contact, 'notexistant'):