renegotiate e2e after somebody reconnects (still doesn't work for PM)
This commit is contained in:
parent
addbc34bc6
commit
6e596e3db0
|
@ -44,17 +44,18 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
|
||||||
|
|
||||||
self.control = None
|
self.control = None
|
||||||
|
|
||||||
def acknowledge_termination(self):
|
def detach_from_control(self):
|
||||||
if self.control:
|
if self.control:
|
||||||
|
self.control.no_autonegotiation = False
|
||||||
self.control.set_session(None)
|
self.control.set_session(None)
|
||||||
|
|
||||||
|
def acknowledge_termination(self):
|
||||||
|
self.detach_from_control()
|
||||||
stanza_session.EncryptedStanzaSession.acknowledge_termination(self)
|
stanza_session.EncryptedStanzaSession.acknowledge_termination(self)
|
||||||
|
|
||||||
def terminate(self):
|
def terminate(self):
|
||||||
stanza_session.EncryptedStanzaSession.terminate(self)
|
stanza_session.EncryptedStanzaSession.terminate(self)
|
||||||
|
self.detach_from_control()
|
||||||
if self.control:
|
|
||||||
self.control.set_session(None)
|
|
||||||
|
|
||||||
# extracts chatstate from a <message/> stanza
|
# extracts chatstate from a <message/> stanza
|
||||||
def get_chatstate(self, msg, msgtxt):
|
def get_chatstate(self, msg, msgtxt):
|
||||||
|
|
Loading…
Reference in New Issue