feat: Don't SMTP-send messages to self-chat if BccSelf is disabled

`chat::create_send_msg_jobs()` already handles `Config::BccSelf` as needed. The only exception is
Autocrypt setup messages. This change unifies the logic for the self-chat and groups only containing
`SELF`.
This commit is contained in:
iequidoo
2024-09-14 23:11:29 -03:00
committed by iequidoo
parent b69488685f
commit 5b597f3a95
3 changed files with 17 additions and 2 deletions

View File

@@ -143,7 +143,9 @@ impl MimeFactory {
let mut req_mdn = false;
if chat.is_self_talk() {
recipients.push((from_displayname.to_string(), from_addr.to_string()));
if msg.param.get_cmd() == SystemMessage::AutocryptSetupMessage {
recipients.push((from_displayname.to_string(), from_addr.to_string()));
}
} else if chat.is_mailing_list() {
let list_post = chat
.param