comparison 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
comparison
equal deleted inserted replaced
573:12823bcbd05b 574:b07f0fe2763a
444 def cb(jid): 444 def cb(jid):
445 otrctx = self.context_manager.getContextForUser(jid, start=False) 445 otrctx = self.context_manager.getContextForUser(jid, start=False)
446 if otrctx is None: 446 if otrctx is None:
447 def confirm(confirm): 447 def confirm(confirm):
448 if confirm: 448 if confirm:
449 self.host.getOrCreateLiberviaWidget(panels.ChatPanel, jid) 449 self.host.getOrCreateLiberviaWidget(panels.ChatPanel, {'item': jid})
450 decrypt(self.context_manager.startContext(jid)) 450 decrypt(self.context_manager.startContext(jid))
451 else: 451 else:
452 # FIXME: plain text messages with whitespaces would be lost here when WHITESPACE_START_AKE is True 452 # FIXME: plain text messages with whitespaces would be lost here when WHITESPACE_START_AKE is True
453 pass 453 pass
454 key = self.context_manager.account.privkey 454 key = self.context_manager.account.privkey