mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 02:46:29 +03:00
hide messages with Secure-Join headers if the Secure-Join fails
This commit is contained in:
committed by
Floris Bruynooghe
parent
8702f290af
commit
91eea03b18
@@ -348,6 +348,10 @@ fn add_parts(
|
|||||||
needs_stop_ongoing_process = ret.stop_ongoing_process;
|
needs_stop_ongoing_process = ret.stop_ongoing_process;
|
||||||
}
|
}
|
||||||
Err(err) => {
|
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!(
|
warn!(
|
||||||
context,
|
context,
|
||||||
"Unexpected messaged passed to Secure-Join handshake protocol: {}", err
|
"Unexpected messaged passed to Secure-Join handshake protocol: {}", err
|
||||||
|
|||||||
Reference in New Issue
Block a user