automatically restart esession when we can't decrypt a message

This commit is contained in:
Brendan Taylor 2008-07-18 23:33:59 +00:00
parent 010afb1176
commit 8e9b2d1781
1 changed files with 7 additions and 0 deletions

View File

@ -1738,6 +1738,13 @@ class Interface:
else:
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):
# ('PRIVACY_LISTS_RECEIVED', account, list)
if not self.instances.has_key(account):