File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -566,15 +566,15 @@ async fn test_escaped_recipients() {
566
566
. unwrap ( )
567
567
. 0 ;
568
568
569
+ // We test with non-chat message here
570
+ // because chat messages are not expected to have `Cc` header.
569
571
receive_imf (
570
572
& t,
571
573
b"From: Foobar <foobar@example.com>\n \
572
574
To: =?UTF-8?B?0JjQvNGPLCDQpNCw0LzQuNC70LjRjw==?= alice@example.org\n \
573
575
Cc: =?utf-8?q?=3Ch2=3E?= <carl@host.tld>\n \
574
576
Subject: foo\n \
575
577
Message-ID: <asdklfjjaweofi@example.com>\n \
576
- Chat-Version: 1.0\n \
577
- Chat-Disposition-Notification-To: <foobar@example.com>\n \
578
578
Date: Sun, 22 Mar 2020 22:37:57 +0000\n \
579
579
\n \
580
580
hello\n ",
@@ -590,9 +590,8 @@ async fn test_escaped_recipients() {
590
590
let msg = Message :: load_from_db ( & t, chats. get_msg_id ( 0 ) . unwrap ( ) . unwrap ( ) )
591
591
. await
592
592
. unwrap ( ) ;
593
- assert_eq ! ( msg. is_dc_message, MessengerMessage :: Yes ) ;
594
- assert_eq ! ( msg. text, "hello" ) ;
595
- assert_eq ! ( msg. param. get_int( Param :: WantsMdn ) . unwrap( ) , 1 ) ;
593
+ assert_eq ! ( msg. is_dc_message, MessengerMessage :: No ) ;
594
+ assert_eq ! ( msg. text, "foo – hello" ) ;
596
595
}
597
596
598
597
/// Tests that `Cc` header updates display name
You can’t perform that action at this time.
0 commit comments