address on flub comment, start on autocryt transfer test

This commit is contained in:
holger krekel
2019-07-05 01:02:22 +02:00
parent c7c86f1b03
commit 12b2a706f0
4 changed files with 35 additions and 2 deletions

View File

@@ -93,6 +93,10 @@ class Message(object):
"""
return MessageType(lib.dc_msg_get_viewtype(self._dc_msg))
def is_setup_message(self):
""" return True if this message is a setup message. """
return lib.dc_is_setupmessage(self._dc_msg)
@props.with_doc
def time_sent(self):
"""UTC time when the message was sent.
@@ -198,6 +202,7 @@ class MessageType(object):
return self._type == const.DC_MSG_FILE
@attr.s
class MessageState(object):
""" Current Message In/Out state, updated on each call of is_* methods.