mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
refactor: ignore ForcePlaintext in saved messages chat
ForcePlaintext was used for Autocrypt Setup Message, there is no need to support it in saved messages chat anymore.
This commit is contained in:
@@ -232,11 +232,7 @@ impl MimeFactory {
|
|||||||
if chat.is_self_talk() {
|
if chat.is_self_talk() {
|
||||||
to.push((from_displayname.to_string(), from_addr.to_string()));
|
to.push((from_displayname.to_string(), from_addr.to_string()));
|
||||||
|
|
||||||
encryption_pubkeys = if msg.param.get_bool(Param::ForcePlaintext).unwrap_or(false) {
|
encryption_pubkeys = Some(Vec::new());
|
||||||
None
|
|
||||||
} else {
|
|
||||||
Some(Vec::new())
|
|
||||||
};
|
|
||||||
} else if chat.is_mailing_list() {
|
} else if chat.is_mailing_list() {
|
||||||
let list_post = chat
|
let list_post = chat
|
||||||
.param
|
.param
|
||||||
|
|||||||
Reference in New Issue
Block a user