mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 17:06:35 +03:00
Fix test_encryption_modus()
This commit is contained in:
@@ -5720,16 +5720,16 @@ mod tests {
|
|||||||
let chat_id = create_group_chat(&t, ProtectionStatus::Unprotected, "Group").await?;
|
let chat_id = create_group_chat(&t, ProtectionStatus::Unprotected, "Group").await?;
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
chat_id.get_encryption_modus(&t).await?,
|
chat_id.encryption_modus(&t).await?,
|
||||||
Some(EncryptionModus::Opportunistic)
|
Some(EncryptionModus::Opportunistic)
|
||||||
);
|
);
|
||||||
|
|
||||||
chat_id
|
chat_id
|
||||||
.set_encryption_modus(&t, &EncryptionModus::ForceEncrypted)
|
.set_encryption_modus(&t, EncryptionModus::ForceEncrypted)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
chat_id.get_encryption_modus(&t).await?,
|
chat_id.encryption_modus(&t).await?,
|
||||||
Some(EncryptionModus::ForceEncrypted)
|
Some(EncryptionModus::ForceEncrypted)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user