disable autonegotiation if e2e is manually started or started by a

failed decrypt
This commit is contained in:
Brendan Taylor 2008-10-12 00:51:24 +00:00
parent 8757449816
commit b9db39e0a9
1 changed files with 2 additions and 1 deletions

View File

@ -2342,7 +2342,6 @@ class ChatControl(ChatControlBase):
NS_ESESSION) and not gajim.capscache.is_supported(
self.contact, 'notexistant'):
self.begin_e2e_negotiation()
self.no_autonegotiation = True
else:
self.send_chatstate('active', self.contact)
@ -2577,6 +2576,8 @@ class ChatControl(ChatControlBase):
self.begin_e2e_negotiation()
def begin_e2e_negotiation(self):
self.no_autonegotiation = True
if not self.session:
fjid = self.contact.get_full_jid()
new_sess = gajim.connections[self.account].make_new_session(fjid)