Fixed getting active status
This commit is contained in:
@@ -989,14 +989,16 @@ class Client(object):
|
|||||||
def getUserActiveStatus(self, user_id):
|
def getUserActiveStatus(self, user_id):
|
||||||
"""
|
"""
|
||||||
Gets friend active status as an :class:`models.ActiveStatus` object.
|
Gets friend active status as an :class:`models.ActiveStatus` object.
|
||||||
|
Returns `None` if status isn't known.
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
Only works when listening.
|
Only works when listening.
|
||||||
|
|
||||||
:param user_id: ID of the user
|
:param user_id: ID of the user
|
||||||
|
:return: Given user active status
|
||||||
:rtype: models.ActiveStatus
|
:rtype: models.ActiveStatus
|
||||||
"""
|
"""
|
||||||
return self._buddylist.get(user_id)
|
return self._buddylist.get(str(user_id))
|
||||||
|
|
||||||
"""
|
"""
|
||||||
END FETCH METHODS
|
END FETCH METHODS
|
||||||
|
Reference in New Issue
Block a user