diff --git a/src/chat.rs b/src/chat.rs index c9dfc6dc8..51061946b 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -1991,9 +1991,6 @@ impl Chat { .ok(); } - // reset encrypt error state eg. for forwarding - msg.param.remove(Param::ErroneousE2ee); - let is_bot = context.get_config_bool(Config::Bot).await?; msg.param .set_optional(Param::Bot, Some("1").filter(|_| is_bot)); diff --git a/src/message.rs b/src/message.rs index 99c4694ca..ab8efed4b 100644 --- a/src/message.rs +++ b/src/message.rs @@ -293,13 +293,7 @@ impl MsgId { ret += ", Location sent"; } - let e2ee_errors = msg.param.get_int(Param::ErroneousE2ee).unwrap_or_default(); - - if 0 != e2ee_errors { - if 0 != e2ee_errors & 0x2 { - ret += ", Encrypted, no valid signature"; - } - } else if 0 != msg.param.get_int(Param::GuaranteeE2ee).unwrap_or_default() { + if 0 != msg.param.get_int(Param::GuaranteeE2ee).unwrap_or_default() { ret += ", Encrypted"; } diff --git a/src/param.rs b/src/param.rs index d83beef6b..920035728 100644 --- a/src/param.rs +++ b/src/param.rs @@ -55,6 +55,8 @@ pub enum Param { /// For Messages: decrypted with validation errors or without mutual set, if neither /// 'c' nor 'e' are preset, the messages is only transport encrypted. + /// + /// Deprecated on 2024-12-25. ErroneousE2ee = b'e', /// For Messages: force unencrypted message, a value from `ForcePlaintext` enum.