File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -2200,6 +2200,29 @@ Message content",
2200
2200
assert_ne ! ( msg. chat_id, t. get_self_chat( ) . await . id) ;
2201
2201
}
2202
2202
2203
+ /// Tests that message with hidden recipients is assigned to Saved Messages chat.
2204
+ #[ tokio:: test( flavor = "multi_thread" , worker_threads = 2 ) ]
2205
+ async fn test_hidden_recipients_self_chat ( ) {
2206
+ let t = TestContext :: new_alice ( ) . await ;
2207
+
2208
+ receive_imf (
2209
+ & t,
2210
+ b"Subject: s
2211
+ Chat-Version: 1.0
2212
+ Message-ID: <foobar@localhost>
2213
+ To: hidden-recipients:;
2214
+ From: <alice@example.org>
2215
+
2216
+ Message content" ,
2217
+ false ,
2218
+ )
2219
+ . await
2220
+ . unwrap ( ) ;
2221
+
2222
+ let msg = t. get_last_msg ( ) . await ;
2223
+ assert_eq ! ( msg. chat_id, t. get_self_chat( ) . await . id) ;
2224
+ }
2225
+
2203
2226
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 2 ) ]
2204
2227
async fn test_no_unencrypted_name_in_self_chat ( ) -> Result < ( ) > {
2205
2228
let mut tcm = TestContextManager :: new ( ) ;
You can’t perform that action at this time.
0 commit comments