hide messages with Secure-Join headers if the Secure-Join fails

This commit is contained in:
B. Petersen
2020-01-01 23:35:31 +01:00
committed by Floris Bruynooghe
parent 8702f290af
commit 91eea03b18

View File

@@ -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