File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -752,6 +752,16 @@ async fn test_self_talk() -> Result<()> {
752
752
assert ! ( msg. get_showpadlock( ) ) ;
753
753
754
754
let sent_msg = t. pop_sent_msg ( ) . await ;
755
+ let payload = sent_msg. payload ( ) ;
756
+ // Make sure the `To` field contains the address and not
757
+ // "undisclosed recipients".
758
+ // Otherwise Delta Chat core <1.153.0 assigns the message
759
+ // to the trash chat.
760
+ assert_eq ! (
761
+ payload. match_indices( "To: <alice@example.org>\r \n " ) . count( ) ,
762
+ 1
763
+ ) ;
764
+
755
765
let t2 = TestContext :: new_alice ( ) . await ;
756
766
t2. recv_msg ( & sent_msg) . await ;
757
767
let chat = & t2. get_self_chat ( ) . await ;
Original file line number Diff line number Diff line change @@ -186,8 +186,8 @@ impl MimeFactory {
186
186
if chat. is_self_talk ( ) {
187
187
if msg. param . get_cmd ( ) == SystemMessage :: AutocryptSetupMessage {
188
188
recipients. push ( from_addr. to_string ( ) ) ;
189
- to. push ( ( from_displayname. to_string ( ) , from_addr. to_string ( ) ) ) ;
190
189
}
190
+ to. push ( ( from_displayname. to_string ( ) , from_addr. to_string ( ) ) ) ;
191
191
} else if chat. is_mailing_list ( ) {
192
192
let list_post = chat
193
193
. param
You can’t perform that action at this time.
0 commit comments