From 91eea03b18b7efac4bb7e95cdcfaa9d604657f0e Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Wed, 1 Jan 2020 23:35:31 +0100 Subject: [PATCH] hide messages with Secure-Join headers if the Secure-Join fails --- src/dc_receive_imf.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index f8996dfbd..b4896d40a 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -348,6 +348,10 @@ fn add_parts( needs_stop_ongoing_process = ret.stop_ongoing_process; } Err(err) => { + // maybe this message belongs to an aborted scan, + // however, by the explicit header check we really know + // that it is a Secure-Join message that should be hidden in the chat view. + *hidden = true; warn!( context, "Unexpected messaged passed to Secure-Join handshake protocol: {}", err