File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ pub(crate) async fn receive_imf_inner(
360
360
let contact = Contact :: get_by_id ( context, from_id) . await ?;
361
361
mime_parser. peerstate = Peerstate :: from_addr ( context, contact. get_addr ( ) ) . await ?;
362
362
} else {
363
- let to_id = to_ids. first ( ) . copied ( ) . unwrap_or_default ( ) ;
363
+ let to_id = to_ids. first ( ) . copied ( ) . unwrap_or ( ContactId :: SELF ) ;
364
364
// handshake may mark contacts as verified and must be processed before chats are created
365
365
res = observe_securejoin_on_other_device ( context, & mime_parser, to_id)
366
366
. await
@@ -1037,7 +1037,7 @@ async fn add_parts(
1037
1037
// the mail is on the IMAP server, probably it is also delivered.
1038
1038
// We cannot recreate other states (read, error).
1039
1039
state = MessageState :: OutDelivered ;
1040
- to_id = to_ids. first ( ) . copied ( ) . unwrap_or_default ( ) ;
1040
+ to_id = to_ids. first ( ) . copied ( ) . unwrap_or ( ContactId :: SELF ) ;
1041
1041
1042
1042
// Older Delta Chat versions with core <=1.152.2 only accepted
1043
1043
// self-sent messages in Saved Messages with own address in the `To` field.
You can’t perform that action at this time.
0 commit comments