diff src/browser/sat_browser/menu.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 dd43132684b9
children a5019e62c3e9
line wrap: on
line diff
--- a/src/browser/sat_browser/menu.py	Fri Oct 17 13:26:33 2014 +0200
+++ b/src/browser/sat_browser/menu.py	Sat Oct 18 13:16:56 2014 +0200
@@ -156,7 +156,7 @@
                 if room_jid not in [room.bare for room in self.host.room_list]:
                     self.host.bridge.call('joinMUC', lambda room_jid: invite(room_jid, contacts), room_jid, nick)
                 else:
-                    self.host.getOrCreateLiberviaWidget(panels.ChatPanel, (room_jid, "group"), True, jid.JID(room_jid).bare)
+                    self.host.getOrCreateLiberviaWidget(panels.ChatPanel, {'item': room_jid, 'type_': "group"}, True, jid.JID(room_jid).bare)
                     invite(room_jid, contacts)
 
         dialog.RoomAndContactsChooser(self.host, join, ok_button="Join", visible=(True, False))