primitivus, wix: auto-display MUC dialog after it has been joined:

- a patch will follow to add a parameter for the user to choose between "always open", "never open" and "ask each time".
This commit is contained in:
souliane 2013-10-28 18:29:34 +01:00
commit cac3cd810f
5 changed files with 53 additions and 24 deletions

View file

@ -336,7 +336,7 @@ class QuickApp(object):
self.chat_wins[room_jid].setType("group")
self.chat_wins[room_jid].id = room_jid
self.chat_wins[room_jid].setPresents(list(set([user_nick]+room_nicks)))
self.contact_list.setSpecial(JID(room_jid), "MUC")
self.contact_list.setSpecial(JID(room_jid), "MUC", show=True)
def roomLeft(self, room_jid_s, profile):
"""Called when a MUC room is left"""
@ -573,3 +573,4 @@ class QuickApp(object):
self.bridge.disconnect(self.profile)
except:
pass