Terminate esession only if it was active before
This is a regression from !96
This commit is contained in:
parent
381b9b0a6c
commit
148655c59f
1 changed files with 2 additions and 0 deletions
|
@ -1606,6 +1606,8 @@ class ChatControl(ChatControlBase):
|
||||||
self.begin_e2e_negotiation()
|
self.begin_e2e_negotiation()
|
||||||
|
|
||||||
def terminate_esessions(self):
|
def terminate_esessions(self):
|
||||||
|
if not (self.session and self.session.enable_encryption):
|
||||||
|
return
|
||||||
# e2e was enabled, disable it
|
# e2e was enabled, disable it
|
||||||
jid = str(self.session.jid)
|
jid = str(self.session.jid)
|
||||||
thread_id = self.session.thread_id
|
thread_id = self.session.thread_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue