From 2bb2d0132edf3c86664804ce4ece992256ae6b3a Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Sun, 23 Nov 2008 04:52:55 +0000 Subject: [PATCH] don't autonegotiate after you've disabled e2e --- src/chat_control.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/chat_control.py b/src/chat_control.py index c1a400db8..c5fae613e 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -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()