From d5faf75f5654f0ab1eef4d4893eb516ee663d821 Mon Sep 17 00:00:00 2001 From: jikstra Date: Thu, 1 Dec 2022 13:50:20 +0100 Subject: [PATCH] Fix test_encryption_modus() --- src/chat.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat.rs b/src/chat.rs index 046652539..298cab829 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -5720,16 +5720,16 @@ mod tests { let chat_id = create_group_chat(&t, ProtectionStatus::Unprotected, "Group").await?; assert_eq!( - chat_id.get_encryption_modus(&t).await?, + chat_id.encryption_modus(&t).await?, Some(EncryptionModus::Opportunistic) ); chat_id - .set_encryption_modus(&t, &EncryptionModus::ForceEncrypted) + .set_encryption_modus(&t, EncryptionModus::ForceEncrypted) .await?; assert_eq!( - chat_id.get_encryption_modus(&t).await?, + chat_id.encryption_modus(&t).await?, Some(EncryptionModus::ForceEncrypted) );