quick frontends (QuickContactList): added isEntityInGroup method
This commit is contained in:
parent
588d65132c
commit
31c7776f03
1 changed files with 9 additions and 0 deletions
|
|
@ -263,6 +263,15 @@ class QuickContactList(QuickWidget):
|
|||
return True
|
||||
return False
|
||||
|
||||
def isEntityInGroup(self, entity, group):
|
||||
"""Tell if an entity is in a roster group
|
||||
|
||||
@param entity(jid.JID): jid of the entity
|
||||
@param group(unicode): group to check
|
||||
@return (bool): True if the entity is in the group
|
||||
"""
|
||||
return entity in self.getGroupData(group, "jids")
|
||||
|
||||
def remove(self, entity):
|
||||
"""remove a contact from the list
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue