QuickFrontend, Primitivus, Wix: special entities management:
- MUC rooms are special entities - Primitivus: special entities are shown at the top of the contacts list above a divider, presence updates are temporary ignored for them
This commit is contained in:
parent
b44412ec0d
commit
80faa0976c
2 changed files with 61 additions and 3 deletions
|
|
@ -285,6 +285,7 @@ class QuickApp():
|
|||
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")
|
||||
|
||||
|
||||
def roomUserJoined(self, room_jid, user_nick, user_data, profile):
|
||||
|
|
|
|||
|
|
@ -70,6 +70,13 @@ class QuickContactList():
|
|||
"""add a contact to the list"""
|
||||
raise NotImplementedError
|
||||
|
||||
def setSpecial(self, jid, _type):
|
||||
"""Set entity as a special
|
||||
@param jid: jid of the entity
|
||||
@param _type: special type (e.g.: "MUC")
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
def updatePresence(self, jid, show, priority, statuses):
|
||||
"""Update entity's presence status
|
||||
@param jid: entity to update's jid
|
||||
|
|
@ -80,3 +87,4 @@ class QuickContactList():
|
|||
self.setCache(jid, 'prority', priority)
|
||||
self.setCache(jid, 'statuses', statuses)
|
||||
self.update_jid(jid)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue