diff --git a/src/chat_control.py b/src/chat_control.py index 2b1e8fa05..e838bc323 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1606,6 +1606,8 @@ class ChatControl(ChatControlBase): self.begin_e2e_negotiation() def terminate_esessions(self): + if not (self.session and self.session.enable_encryption): + return # e2e was enabled, disable it jid = str(self.session.jid) thread_id = self.session.thread_id