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

don't autonegotiate after you've disabled e2e

parent 1b1ef688
No related branches found
No related tags found
No related merge requests found
......@@ -2646,12 +2646,17 @@ class ChatControl(ChatControlBase):
def _on_toggle_e2e_menuitem_activate(self, widget):
if self.session and self.session.enable_encryption:
# e2e was enabled, disable it
jid = str(self.session.jid)
thread_id = self.session.thread_id
self.session.terminate_e2e()
gajim.connections[self.account].delete_session(jid, thread_id)
# presumably the user had a good reason to shut it off, so
# disable autonegotiation too
self.no_autonegotiation = True
else:
self.begin_e2e_negotiation()
......
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