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

@@ -620,7 +620,7 @@ def test_long_group_name(acfactory, lp):
def test_send_self_message(acfactory, lp):
ac1 = acfactory.new_online_configuring_account(mvbox_move=True)
ac1 = acfactory.new_online_configuring_account(mvbox_move=True, bcc_self=True)
acfactory.bring_accounts_online()
lp.sec("ac1: create self chat")
chat = ac1.get_self_contact().create_chat()