File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -1991,9 +1991,6 @@ impl Chat {
1991
1991
. ok ( ) ;
1992
1992
}
1993
1993
1994
- // reset encrypt error state eg. for forwarding
1995
- msg. param . remove ( Param :: ErroneousE2ee ) ;
1996
-
1997
1994
let is_bot = context. get_config_bool ( Config :: Bot ) . await ?;
1998
1995
msg. param
1999
1996
. set_optional ( Param :: Bot , Some ( "1" ) . filter ( |_| is_bot) ) ;
Original file line number Diff line number Diff line change @@ -293,13 +293,7 @@ impl MsgId {
293
293
ret += ", Location sent" ;
294
294
}
295
295
296
- let e2ee_errors = msg. param . get_int ( Param :: ErroneousE2ee ) . unwrap_or_default ( ) ;
297
-
298
- if 0 != e2ee_errors {
299
- if 0 != e2ee_errors & 0x2 {
300
- ret += ", Encrypted, no valid signature" ;
301
- }
302
- } else if 0 != msg. param . get_int ( Param :: GuaranteeE2ee ) . unwrap_or_default ( ) {
296
+ if 0 != msg. param . get_int ( Param :: GuaranteeE2ee ) . unwrap_or_default ( ) {
303
297
ret += ", Encrypted" ;
304
298
}
305
299
Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ pub enum Param {
55
55
56
56
/// For Messages: decrypted with validation errors or without mutual set, if neither
57
57
/// 'c' nor 'e' are preset, the messages is only transport encrypted.
58
+ ///
59
+ /// Deprecated on 2024-12-25.
58
60
ErroneousE2ee = b'e' ,
59
61
60
62
/// For Messages: force unencrypted message, a value from `ForcePlaintext` enum.
You can’t perform that action at this time.
0 commit comments