mirror of
https://github.com/chatmail/core.git
synced 2026-05-23 00:36:32 +03:00
fix typo
This commit is contained in:
committed by
Alexander Krotov
parent
ee4adc1363
commit
929677afe0
@@ -222,7 +222,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
|
|||||||
.collect())
|
.collect())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_e2ee_guranteed(&self) -> bool {
|
fn is_e2ee_guaranteed(&self) -> bool {
|
||||||
match &self.loaded {
|
match &self.loaded {
|
||||||
Loaded::Message { chat } => {
|
Loaded::Message { chat } => {
|
||||||
if chat.typ == Chattype::VerifiedGroup {
|
if chat.typ == Chattype::VerifiedGroup {
|
||||||
@@ -435,7 +435,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
|
|||||||
let grpimage = self.grpimage();
|
let grpimage = self.grpimage();
|
||||||
let force_plaintext = self.should_force_plaintext();
|
let force_plaintext = self.should_force_plaintext();
|
||||||
let subject_str = self.subject_str();
|
let subject_str = self.subject_str();
|
||||||
let e2ee_guranteed = self.is_e2ee_guranteed();
|
let e2ee_guaranteed = self.is_e2ee_guaranteed();
|
||||||
let mut encrypt_helper = EncryptHelper::new(self.context)?;
|
let mut encrypt_helper = EncryptHelper::new(self.context)?;
|
||||||
|
|
||||||
let subject = encode_words(&subject_str);
|
let subject = encode_words(&subject_str);
|
||||||
@@ -457,7 +457,7 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
|
|||||||
|
|
||||||
let peerstates = self.peerstates_for_recipients()?;
|
let peerstates = self.peerstates_for_recipients()?;
|
||||||
let should_encrypt =
|
let should_encrypt =
|
||||||
encrypt_helper.should_encrypt(self.context, e2ee_guranteed, &peerstates)?;
|
encrypt_helper.should_encrypt(self.context, e2ee_guaranteed, &peerstates)?;
|
||||||
let is_encrypted = should_encrypt && force_plaintext == 0;
|
let is_encrypted = should_encrypt && force_plaintext == 0;
|
||||||
|
|
||||||
let rfc724_mid = match self.loaded {
|
let rfc724_mid = match self.loaded {
|
||||||
|
|||||||
Reference in New Issue
Block a user