From 56f8717a40f2d8481d8bf9bb766aeeb78acbbac0 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 21 Jul 2019 22:22:11 +0300 Subject: [PATCH] Show AutocryptSetupMessage independently of show-emails settings Fixes #161 --- src/dc_receive_imf.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index 913d76380..ae71b4827 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -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")