mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 03:50:08 +02:00
add api to get the first characters of the setup code
This commit is contained in:
parent
5890f00ae7
commit
553f66cd5f
3 changed files with 26 additions and 0 deletions
22
src/mrmsg.c
22
src/mrmsg.c
|
@ -703,6 +703,28 @@ int mrmsg_is_setupmessage(mrmsg_t* msg)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the first characters of the setup code.
|
||||
*
|
||||
* Typically, this is used to pre-fill the first entry field of the setup code.
|
||||
* If the user has several setup messages, he can be sure typing in the correct digits.
|
||||
*
|
||||
* To check, if a message is a setup message, use mrmsg_is_setupmessage().
|
||||
* To decrypt a secret key from a setup message, use mrmailbox_continue_key_transfer().
|
||||
*
|
||||
* @memberof mrmsg_t
|
||||
*
|
||||
* @param msg The message object.
|
||||
*
|
||||
* @return Typically, the first two digits of the setup code or an empty string if unknown.
|
||||
* NULL is never returned. Must be free()'d when done.
|
||||
*/
|
||||
char* mrmsg_get_setupcodebegin(mrmsg_t* msg)
|
||||
{
|
||||
return safe_strdup(NULL);
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Misc.
|
||||
******************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue