Mercurial > libervia-web
diff src/browser/sat_browser/plugin_sec_otr.py @ 574:b07f0fe2763a
browser_side: safer attributes handling in getOrCreateLiberviaWidget + use it to create MUC panels
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 18 Oct 2014 13:16:56 +0200 |
parents | 77372641e05d |
children | 4c6c61696ba0 |
line wrap: on
line diff
--- a/src/browser/sat_browser/plugin_sec_otr.py Fri Oct 17 13:26:33 2014 +0200 +++ b/src/browser/sat_browser/plugin_sec_otr.py Sat Oct 18 13:16:56 2014 +0200 @@ -446,7 +446,7 @@ if otrctx is None: def confirm(confirm): if confirm: - self.host.getOrCreateLiberviaWidget(panels.ChatPanel, jid) + self.host.getOrCreateLiberviaWidget(panels.ChatPanel, {'item': jid}) decrypt(self.context_manager.startContext(jid)) else: # FIXME: plain text messages with whitespaces would be lost here when WHITESPACE_START_AKE is True