quick_frontend, primitivus (chat): merge setOccupantStates and setContactStates
This commit is contained in:
parent
6dc8b211bf
commit
83af62d142
1 changed files with 20 additions and 21 deletions
|
|
@ -224,10 +224,15 @@ class QuickChat(quick_widgets.QuickWidget):
|
|||
value = clist.getCache(entity, key)
|
||||
if value:
|
||||
states[key] = value
|
||||
if self.type == C.CHAT_GROUP:
|
||||
self.setOccupantStates(entity, states)
|
||||
else:
|
||||
self.setContactStates(entity, states)
|
||||
self.setContactStates(entity, states)
|
||||
|
||||
def setContactStates(self, contact_jid, states):
|
||||
"""Set a contact (one2one or MUC occupant) states.
|
||||
|
||||
@param contact_jid (jid.JID): contact
|
||||
@param states (dict{unicode: unicode}): new states
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
def addGamePanel(self, widget):
|
||||
"""Insert a game panel to this Chat dialog.
|
||||
|
|
|
|||
Loading…
Reference in a new issue