mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
test: Remove unnecessary inner_set_protection() call (#4539)
1:1 chats are automatically created as protected if the contact is verified, there is no need to explicitly do this. Plus, by removing this call, the test also tests that automatically creating 1:1 chats as protected works.
This commit is contained in:
@@ -449,12 +449,7 @@ async fn test_break_protection_then_verify_again() -> Result<()> {
|
||||
mark_as_verified(&alice, &bob).await;
|
||||
mark_as_verified(&bob, &alice).await;
|
||||
|
||||
alice
|
||||
.create_chat(&bob)
|
||||
.await
|
||||
.id
|
||||
.inner_set_protection(&alice, ProtectionStatus::Protected)
|
||||
.await?;
|
||||
alice.create_chat(&bob).await;
|
||||
assert_verified(&alice, &bob, ProtectionStatus::Protected).await;
|
||||
|
||||
tcm.section("Bob reinstalls DC");
|
||||
|
||||
Reference in New Issue
Block a user