diff --git a/src/dc_receive_imf.rs b/src/dc_receive_imf.rs index d6fae3dce..f9f11dbce 100644 --- a/src/dc_receive_imf.rs +++ b/src/dc_receive_imf.rs @@ -877,10 +877,15 @@ fn create_or_lookup_group( mime_parser.repl_msg_by_error(s); } } - // check if the sender is a member of the existing group - - // if not, we'll recreate the group list if !chat::is_contact_in_chat(context, chat_id, from_id as u32) { - recreate_member_list = true; + // The From-address is not part of this group. + // It could be a new user or a DSN from a mailer-daemon. + // in any case we do not want to recreate the member list + // but still show the message as part of the chat. + // After all, the sender has a reference/in-reply-to that + // points to this chat. + let s = context.stock_str(StockMessage::UnknownSenderForChat); + mime_parser.repl_msg_by_error(s.to_string()); } } diff --git a/src/stock.rs b/src/stock.rs index dd712b048..08b7c62c6 100644 --- a/src/stock.rs +++ b/src/stock.rs @@ -185,6 +185,9 @@ pub enum StockMessage { Recipients don't need to install Delta Chat, visit websites or sign up anywhere - \ however, of course, if they like, you may point them to 👉 https://get.delta.chat"))] WelcomeMessage = 71, + + #[strum(props(fallback = "Unknown Sender for this chat. See 'info' for more details."))] + UnknownSenderForChat = 72, } /*