Show AutocryptSetupMessage independently of show-emails settings

Fixes #161
This commit is contained in:
Alexander Krotov
2019-07-21 22:22:11 +03:00
committed by holger krekel
parent 4a0b2e68c8
commit 56f8717a40

View File

@@ -215,7 +215,9 @@ pub unsafe fn dc_receive_imf(
maybe this can be optimized later,
by checking the state before the message body is downloaded */
let mut allow_creation: libc::c_int = 1;
if msgrmsg == 0 {
if mime_parser.is_system_message != DC_CMD_AUTOCRYPT_SETUP_MESSAGE
&& msgrmsg == 0
{
let show_emails = context
.sql
.get_config_int(context, "show_emails")