core: added isJidInRoster method
This commit is contained in:
parent
8e8e67f8f3
commit
41c9bab8a3
1 changed files with 4 additions and 0 deletions
|
|
@ -227,6 +227,10 @@ class SatRosterProtocol(xmppim.RosterClientProtocol):
|
|||
def getBareJids(self):
|
||||
"""Return all bare jids (as unicode) of the roster"""
|
||||
return self._jids.keys()
|
||||
|
||||
def isJidInRoster(self, entity_jid):
|
||||
"""Return True if jid is in roster"""
|
||||
return entity_jid.userhost() in self._jids
|
||||
|
||||
def getItems(self):
|
||||
"""Return all items of the roster"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue