add tests and API for is_forwarded

This commit is contained in:
holger krekel
2019-10-21 08:04:41 +02:00
parent f404e31e30
commit 4b24f32d6c
2 changed files with 36 additions and 1 deletions

View File

@@ -109,6 +109,10 @@ class Message(object):
""" return True if this message was encrypted. """
return bool(lib.dc_msg_get_showpadlock(self._dc_msg))
def is_forwarded(self):
""" return True if this message was forwarded. """
return bool(lib.dc_msg_is_forwarded(self._dc_msg))
def get_message_info(self):
""" Return informational text for a single message.