@@ -35,7 +35,6 @@ async fn check_verified_oneonone_chat_protection_not_broken(by_classical_email:
35
35
let mut tcm = TestContextManager :: new ( ) ;
36
36
let alice = tcm. alice ( ) . await ;
37
37
let bob = tcm. bob ( ) . await ;
38
- enable_verified_oneonone_chats ( & [ & alice, & bob] ) . await ;
39
38
40
39
tcm. execute_securejoin ( & alice, & bob) . await ;
41
40
@@ -89,7 +88,6 @@ async fn test_create_verified_oneonone_chat() -> Result<()> {
89
88
let alice = tcm. alice ( ) . await ;
90
89
let bob = tcm. bob ( ) . await ;
91
90
let fiona = tcm. fiona ( ) . await ;
92
- enable_verified_oneonone_chats ( & [ & alice, & bob, & fiona] ) . await ;
93
91
94
92
tcm. execute_securejoin ( & alice, & bob) . await ;
95
93
tcm. execute_securejoin ( & bob, & fiona) . await ;
@@ -151,7 +149,6 @@ async fn test_create_verified_oneonone_chat() -> Result<()> {
151
149
drop ( fiona) ;
152
150
153
151
let fiona_new = tcm. unconfigured ( ) . await ;
154
- enable_verified_oneonone_chats ( & [ & fiona_new] ) . await ;
155
152
fiona_new
. configure_addr ( "[email protected] " ) . await ;
156
153
e2ee:: ensure_secret_key_exists ( & fiona_new) . await ?;
157
154
@@ -181,7 +178,6 @@ async fn test_missing_key_reexecute_securejoin() -> Result<()> {
181
178
let mut tcm = TestContextManager :: new ( ) ;
182
179
let alice = & tcm. alice ( ) . await ;
183
180
let bob = & tcm. bob ( ) . await ;
184
- enable_verified_oneonone_chats ( & [ alice, bob] ) . await ;
185
181
let chat_id = tcm. execute_securejoin ( bob, alice) . await ;
186
182
let chat = Chat :: load_from_db ( bob, chat_id) . await ?;
187
183
assert ! ( chat. is_protected( ) ) ;
@@ -206,7 +202,6 @@ async fn test_create_unverified_oneonone_chat() -> Result<()> {
206
202
let mut tcm = TestContextManager :: new ( ) ;
207
203
let alice = tcm. alice ( ) . await ;
208
204
let bob = tcm. bob ( ) . await ;
209
- enable_verified_oneonone_chats ( & [ & alice, & bob] ) . await ;
210
205
211
206
// A chat with an unknown contact should be created unprotected
212
207
let chat = alice. create_chat ( & bob) . await ;
@@ -246,7 +241,6 @@ async fn test_degrade_verified_oneonone_chat() -> Result<()> {
246
241
let mut tcm = TestContextManager :: new ( ) ;
247
242
let alice = tcm. alice ( ) . await ;
248
243
let bob = tcm. bob ( ) . await ;
249
- enable_verified_oneonone_chats ( & [ & alice, & bob] ) . await ;
250
244
251
245
mark_as_verified ( & alice, & bob) . await ;
252
246
@@ -361,7 +355,6 @@ async fn test_mdn_doesnt_disable_verification() -> Result<()> {
361
355
let mut tcm = TestContextManager :: new ( ) ;
362
356
let alice = tcm. alice ( ) . await ;
363
357
let bob = tcm. bob ( ) . await ;
364
- enable_verified_oneonone_chats ( & [ & alice, & bob] ) . await ;
365
358
bob. set_config_bool ( Config :: MdnsEnabled , true ) . await ?;
366
359
367
360
// Alice & Bob verify each other
@@ -386,7 +379,6 @@ async fn test_outgoing_mua_msg() -> Result<()> {
386
379
let mut tcm = TestContextManager :: new ( ) ;
387
380
let alice = tcm. alice ( ) . await ;
388
381
let bob = tcm. bob ( ) . await ;
389
- enable_verified_oneonone_chats ( & [ & alice, & bob] ) . await ;
390
382
391
383
mark_as_verified ( & alice, & bob) . await ;
392
384
mark_as_verified ( & bob, & alice) . await ;
@@ -423,7 +415,6 @@ async fn test_outgoing_encrypted_msg() -> Result<()> {
423
415
let mut tcm = TestContextManager :: new ( ) ;
424
416
let alice = & tcm. alice ( ) . await ;
425
417
let bob = & tcm. bob ( ) . await ;
426
- enable_verified_oneonone_chats ( & [ alice] ) . await ;
427
418
428
419
mark_as_verified ( alice, bob) . await ;
429
420
let chat_id = alice. create_chat ( bob) . await . id ;
@@ -449,7 +440,6 @@ async fn test_reply() -> Result<()> {
449
440
let mut tcm = TestContextManager :: new ( ) ;
450
441
let alice = tcm. alice ( ) . await ;
451
442
let bob = tcm. bob ( ) . await ;
452
- enable_verified_oneonone_chats ( & [ & alice, & bob] ) . await ;
453
443
454
444
if verified {
455
445
mark_as_verified ( & alice, & bob) . await ;
@@ -492,7 +482,6 @@ async fn test_message_from_old_dc_setup() -> Result<()> {
492
482
let alice = & tcm. alice ( ) . await ;
493
483
let bob_old = & tcm. unconfigured ( ) . await ;
494
484
495
- enable_verified_oneonone_chats ( & [ alice, bob_old] ) . await ;
496
485
bob_old
. configure_addr ( "[email protected] " ) . await ;
497
486
mark_as_verified ( bob_old, alice) . await ;
498
487
let chat = bob_old. create_chat ( alice) . await ;
@@ -503,7 +492,6 @@ async fn test_message_from_old_dc_setup() -> Result<()> {
503
492
504
493
tcm. section ( "Bob reinstalls DC" ) ;
505
494
let bob = & tcm. bob ( ) . await ;
506
- enable_verified_oneonone_chats ( & [ bob] ) . await ;
507
495
508
496
mark_as_verified ( alice, bob) . await ;
509
497
mark_as_verified ( bob, alice) . await ;
@@ -535,7 +523,6 @@ async fn test_verify_then_verify_again() -> Result<()> {
535
523
let mut tcm = TestContextManager :: new ( ) ;
536
524
let alice = tcm. alice ( ) . await ;
537
525
let bob = tcm. bob ( ) . await ;
538
- enable_verified_oneonone_chats ( & [ & alice, & bob] ) . await ;
539
526
540
527
mark_as_verified ( & alice, & bob) . await ;
541
528
mark_as_verified ( & bob, & alice) . await ;
@@ -546,7 +533,6 @@ async fn test_verify_then_verify_again() -> Result<()> {
546
533
tcm. section ( "Bob reinstalls DC" ) ;
547
534
drop ( bob) ;
548
535
let bob_new = tcm. unconfigured ( ) . await ;
549
- enable_verified_oneonone_chats ( & [ & bob_new] ) . await ;
550
536
bob_new
. configure_addr ( "[email protected] " ) . await ;
551
537
e2ee:: ensure_secret_key_exists ( & bob_new) . await ?;
552
538
@@ -599,7 +585,6 @@ async fn test_verified_member_added_reordering() -> Result<()> {
599
585
let alice = & tcm. alice ( ) . await ;
600
586
let bob = & tcm. bob ( ) . await ;
601
587
let fiona = & tcm. fiona ( ) . await ;
602
- enable_verified_oneonone_chats ( & [ alice, bob, fiona] ) . await ;
603
588
604
589
let alice_fiona_contact_id = alice. add_or_lookup_contact_id ( fiona) . await ;
605
590
@@ -651,7 +636,6 @@ async fn test_no_unencrypted_name_if_encrypted() -> Result<()> {
651
636
bob. set_config ( Config :: Displayname , Some ( "Bob Smith" ) )
652
637
. await ?;
653
638
if verified {
654
- enable_verified_oneonone_chats ( & [ & bob] ) . await ;
655
639
mark_as_verified ( & bob, & alice) . await ;
656
640
} else {
657
641
tcm. send_recv_accept ( & alice, & bob, "hi" ) . await ;
@@ -882,11 +866,3 @@ async fn assert_verified(this: &TestContext, other: &TestContext, protected: Pro
882
866
protected == ProtectionStatus :: Protected
883
867
) ;
884
868
}
885
-
886
- async fn enable_verified_oneonone_chats ( test_contexts : & [ & TestContext ] ) {
887
- for t in test_contexts {
888
- t. set_config_bool ( Config :: VerifiedOneOnOneChats , true )
889
- . await
890
- . unwrap ( )
891
- }
892
- }
0 commit comments