automatically restart esession when we can't decrypt a message
This commit is contained in:
parent
010afb1176
commit
8e9b2d1781
|
@ -1738,6 +1738,13 @@ class Interface:
|
||||||
else:
|
else:
|
||||||
dialogs.WarningDialog(_('Unable to decrypt message'), details)
|
dialogs.WarningDialog(_('Unable to decrypt message'), details)
|
||||||
|
|
||||||
|
# terminate the session
|
||||||
|
session.terminate_e2e()
|
||||||
|
session.conn.delete_session(jid, session.thread_id)
|
||||||
|
|
||||||
|
# restart the session
|
||||||
|
session.begin_e2e_negotiation()
|
||||||
|
|
||||||
def handle_event_privacy_lists_received(self, account, data):
|
def handle_event_privacy_lists_received(self, account, data):
|
||||||
# ('PRIVACY_LISTS_RECEIVED', account, list)
|
# ('PRIVACY_LISTS_RECEIVED', account, list)
|
||||||
if not self.instances.has_key(account):
|
if not self.instances.has_key(account):
|
||||||
|
|
Loading…
Reference in New Issue