add test and python API for verified group handling/chatting

add msg.is_encrypted() API and check for it from some tests
This commit is contained in:
holger krekel
2019-09-19 20:53:21 +02:00
parent 9f914dd42e
commit ceff85d892
4 changed files with 55 additions and 1 deletions

View File

@@ -101,6 +101,10 @@ class Message(object):
""" return True if this message is a setup message. """
return lib.dc_msg_is_setupmessage(self._dc_msg)
def is_encrypted(self):
""" return True if this message was encrypted. """
return bool(lib.dc_msg_get_showpadlock(self._dc_msg))
def get_message_info(self):
""" Return informational text for a single message.