mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 03:50:08 +02:00
error checking
This commit is contained in:
parent
8c9b8e410d
commit
cd3726eab0
2 changed files with 5 additions and 1 deletions
|
@ -672,6 +672,10 @@ int mrmsg_is_systemcmd(mrmsg_t* msg)
|
|||
*/
|
||||
int mrmsg_is_setupmessage(mrmsg_t* msg)
|
||||
{
|
||||
if( msg == NULL ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return mrparam_get_int(msg->m_param, MRP_SYSTEM_CMD, 0)==MR_SYSTEM_AUTOCRYPT_SETUP_MESSAGE? 1 : 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue