diff src/browser/sat_browser/plugin_sec_otr.py @ 540:22358ffa26e4

browser_side (plugin OTR): really clean everything on key drop
author souliane <souliane@mailoo.org>
date Sun, 07 Sep 2014 23:40:06 +0200
parents 19b8af73e945
children e903a9f79172
line wrap: on
line diff
--- a/src/browser/sat_browser/plugin_sec_otr.py	Sun Sep 07 23:29:49 2014 +0200
+++ b/src/browser/sat_browser/plugin_sec_otr.py	Sun Sep 07 23:40:06 2014 +0200
@@ -548,8 +548,8 @@
                     # we end all sessions
                     for context in self.context_manager.contexts.values():
                         context.disconnect()
+                    self.context_manager.contexts.clear()
                     self.context_manager.account.privkey = None
-                    self.context_manager.account.getPrivkey()  # as account.privkey are None, getPrivkey will generate a new key, and save it
                     dialog.InfoDialog(KEY_TITLE, KEY_DROPPED_TXT, AddStyleName="maxWidthLimit").show()
 
             dialog.ConfirmDialog(dropKey, KEY_DROP_TXT.format(eol=DIALOG_EOL), KEY_DROP_TITLE, AddStyleName="maxWidthLimit").show()