Mercurial > libervia-web
diff browser_side/dialog.py @ 272:0cb9869b42b6
browser_side: bug fix for RoomAndContactsChooser (do not display the MUCs in the list)
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 21 Nov 2013 13:44:26 +0100 |
parents | d868181d0649 |
children | aebb96bfa8d1 |
line wrap: on
line diff
--- a/browser_side/dialog.py Tue Nov 19 21:21:49 2013 +0100 +++ b/browser_side/dialog.py Thu Nov 21 13:44:26 2013 +0100 @@ -140,7 +140,7 @@ @param select: list of the contacts to select by default """ self.contacts_list.clear() - contacts = self.host.contact_panel.getConnected() + contacts = self.host.contact_panel.getConnected(filter_muc=True) self.contacts_list.setVisibleItemCount(10 if len(contacts) > 5 else 5) self.contacts_list.addItem("") for contact in contacts: @@ -218,6 +218,7 @@ room_jid = self.getRoom() if room_jid != "" and "@" not in room_jid: Window.alert('You must enter a room jid in the form room@chat.%s' % self.host._defaultDomain) + return self.hide() self.callback(room_jid, self.getContacts())