add a test that runs until an avatar is send encrypted

This commit is contained in:
holger krekel
2019-12-11 17:20:27 +01:00
parent f6861ca5f5
commit 8ab3363097
3 changed files with 71 additions and 1 deletions

View File

@@ -47,3 +47,13 @@ class Contact(object):
def is_verified(self):
""" Return True if the contact is verified. """
return lib.dc_contact_is_verified(self._dc_contact)
def get_profile_image(self):
"""Get contact profile image.
:returns: path to profile image, None if no profile image exists.
"""
dc_res = lib.dc_contact_get_profile_image(self._dc_contact)
if dc_res == ffi.NULL:
return None
return from_dc_charpointer(dc_res)