add a failing test for Autocrypt Key Transfer failing to extract a private key from an incoming ASM message

This commit is contained in:
holger krekel
2019-07-05 12:46:14 +02:00
parent 12b2a706f0
commit 699b2d48e6
3 changed files with 31 additions and 9 deletions

View File

@@ -95,7 +95,11 @@ class Message(object):
def is_setup_message(self):
""" return True if this message is a setup message. """
return lib.dc_is_setupmessage(self._dc_msg)
return lib.dc_msg_is_setupmessage(self._dc_msg)
def continue_key_transfer(self, setup_code):
""" extract key and use it as primary key for this account. """
lib.dc_continue_key_transfer(self._dc_context, self.id, as_dc_charpointer(setup_code))
@props.with_doc
def time_sent(self):