diff frontends/src/quick_frontend/quick_contact_list.py @ 685:0b9bd47dffcd

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".
author souliane <souliane@mailoo.org>
date Mon, 28 Oct 2013 18:29:34 +0100
parents 84a6e83157c2
children f7878ad3c846
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_contact_list.py	Thu Oct 24 08:47:45 2013 +0200
+++ b/frontends/src/quick_frontend/quick_contact_list.py	Mon Oct 28 18:29:34 2013 +0100
@@ -72,10 +72,11 @@
         """Return special type of jid, or None if it's not special"""
         return self.specials.get(jid.short)
 
-    def setSpecial(self, jid, _type):
+    def setSpecial(self, jid, _type, show=False):
         """Set entity as a special
         @param jid: jid of the entity
         @param _type: special type (e.g.: "MUC")
+        @param show: True to display the dialog to chat with this entity
         """
         self.specials[jid.short] = _type
 
@@ -89,4 +90,3 @@
         self.setCache(jid, 'prority', priority)
         self.setCache(jid, 'statuses', statuses)
         self.update_jid(jid)
-