Skip to content
Snippets Groups Projects
Commit b9db39e0 authored by Brendan Taylor's avatar Brendan Taylor
Browse files

disable autonegotiation if e2e is manually started or started by a

failed decrypt
parent 87574498
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment