mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +03:00
refactor: deprecate Param::ErroneousE2ee
This commit is contained in:
@@ -1991,9 +1991,6 @@ impl Chat {
|
|||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
// reset encrypt error state eg. for forwarding
|
|
||||||
msg.param.remove(Param::ErroneousE2ee);
|
|
||||||
|
|
||||||
let is_bot = context.get_config_bool(Config::Bot).await?;
|
let is_bot = context.get_config_bool(Config::Bot).await?;
|
||||||
msg.param
|
msg.param
|
||||||
.set_optional(Param::Bot, Some("1").filter(|_| is_bot));
|
.set_optional(Param::Bot, Some("1").filter(|_| is_bot));
|
||||||
|
|||||||
@@ -293,13 +293,7 @@ impl MsgId {
|
|||||||
ret += ", Location sent";
|
ret += ", Location sent";
|
||||||
}
|
}
|
||||||
|
|
||||||
let e2ee_errors = msg.param.get_int(Param::ErroneousE2ee).unwrap_or_default();
|
if 0 != msg.param.get_int(Param::GuaranteeE2ee).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() {
|
|
||||||
ret += ", Encrypted";
|
ret += ", Encrypted";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ pub enum Param {
|
|||||||
|
|
||||||
/// For Messages: decrypted with validation errors or without mutual set, if neither
|
/// For Messages: decrypted with validation errors or without mutual set, if neither
|
||||||
/// 'c' nor 'e' are preset, the messages is only transport encrypted.
|
/// 'c' nor 'e' are preset, the messages is only transport encrypted.
|
||||||
|
///
|
||||||
|
/// Deprecated on 2024-12-25.
|
||||||
ErroneousE2ee = b'e',
|
ErroneousE2ee = b'e',
|
||||||
|
|
||||||
/// For Messages: force unencrypted message, a value from `ForcePlaintext` enum.
|
/// For Messages: force unencrypted message, a value from `ForcePlaintext` enum.
|
||||||
|
|||||||
Reference in New Issue
Block a user