Mercurial > libervia-backend
comparison 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 |
comparison
equal
deleted
inserted
replaced
684:969562c4761b | 685:0b9bd47dffcd |
---|---|
70 | 70 |
71 def getSpecial(self, jid): | 71 def getSpecial(self, jid): |
72 """Return special type of jid, or None if it's not special""" | 72 """Return special type of jid, or None if it's not special""" |
73 return self.specials.get(jid.short) | 73 return self.specials.get(jid.short) |
74 | 74 |
75 def setSpecial(self, jid, _type): | 75 def setSpecial(self, jid, _type, show=False): |
76 """Set entity as a special | 76 """Set entity as a special |
77 @param jid: jid of the entity | 77 @param jid: jid of the entity |
78 @param _type: special type (e.g.: "MUC") | 78 @param _type: special type (e.g.: "MUC") |
79 @param show: True to display the dialog to chat with this entity | |
79 """ | 80 """ |
80 self.specials[jid.short] = _type | 81 self.specials[jid.short] = _type |
81 | 82 |
82 def updatePresence(self, jid, show, priority, statuses): | 83 def updatePresence(self, jid, show, priority, statuses): |
83 """Update entity's presence status | 84 """Update entity's presence status |
87 @param statuses: dict of statuses""" | 88 @param statuses: dict of statuses""" |
88 self.setCache(jid, 'show', show) | 89 self.setCache(jid, 'show', show) |
89 self.setCache(jid, 'prority', priority) | 90 self.setCache(jid, 'prority', priority) |
90 self.setCache(jid, 'statuses', statuses) | 91 self.setCache(jid, 'statuses', statuses) |
91 self.update_jid(jid) | 92 self.update_jid(jid) |
92 |