File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -595,6 +595,8 @@ async fn test_escaped_recipients() {
595
595
assert_eq ! ( msg. param. get_int( Param :: WantsMdn ) . unwrap( ) , 1 ) ;
596
596
}
597
597
598
+ /// Tests that `Cc` header updates display name
599
+ /// if existing contact has low enough origin.
598
600
#[ tokio:: test( flavor = "multi_thread" , worker_threads = 2 ) ]
599
601
async fn test_cc_to_contact ( ) {
600
602
let t = TestContext :: new_alice ( ) . await ;
@@ -612,6 +614,8 @@ async fn test_cc_to_contact() {
612
614
. unwrap ( )
613
615
. 0 ;
614
616
617
+ // We use non-chat message here
618
+ // because chat messages are not expected to have `Cc` header.
615
619
receive_imf (
616
620
& t,
617
621
b"Received: (Postfix, from userid 1000); Mon, 4 Dec 2006 14:51:39 +0100 (CET)\n \
@@ -620,8 +624,6 @@ async fn test_cc_to_contact() {
620
624
Cc: Carl <carl@host.tld>\n \
621
625
Subject: foo\n \
622
626
Message-ID: <asdklfjjaweofi@example.com>\n \
623
- Chat-Version: 1.0\n \
624
- Chat-Disposition-Notification-To: <foobar@example.com>\n \
625
627
Date: Sun, 22 Mar 2020 22:37:57 +0000\n \
626
628
\n \
627
629
hello\n ",
You can’t perform that action at this time.
0 commit comments