File tree Expand file tree Collapse file tree 4 files changed +27
-9
lines changed Expand file tree Collapse file tree 4 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -2890,8 +2890,8 @@ async fn test_broadcast_joining_golden() -> Result<()> {
2890
2890
bob. golden_test_chat ( bob_chat_id, "test_broadcast_joining_golden_bob" )
2891
2891
. await ;
2892
2892
2893
- let alice_bob_contact = alice. add_or_lookup_contact_id ( bob) . await ;
2894
- let direct_chat = ChatIdBlocked :: lookup_by_contact ( alice, alice_bob_contact)
2893
+ let alice_bob_contact = alice. add_or_lookup_contact_no_key ( bob) . await ;
2894
+ let direct_chat = ChatIdBlocked :: lookup_by_contact ( alice, alice_bob_contact. id )
2895
2895
. await ?
2896
2896
. unwrap ( ) ;
2897
2897
// The 1:1 chat with Bob should not be visible to the user:
@@ -2900,6 +2900,25 @@ async fn test_broadcast_joining_golden() -> Result<()> {
2900
2900
. golden_test_chat ( direct_chat. id , "test_broadcast_joining_golden_alice_direct" )
2901
2901
. await ;
2902
2902
2903
+ assert_eq ! (
2904
+ alice_bob_contact
2905
+ . get_verifier_id( alice)
2906
+ . await ?
2907
+ . unwrap( )
2908
+ . unwrap( ) ,
2909
+ ContactId :: SELF
2910
+ ) ;
2911
+
2912
+ let bob_alice_contact = bob. add_or_lookup_contact_no_key ( alice) . await ;
2913
+ assert_eq ! (
2914
+ bob_alice_contact
2915
+ . get_verifier_id( bob)
2916
+ . await ?
2917
+ . unwrap( )
2918
+ . unwrap( ) ,
2919
+ ContactId :: SELF
2920
+ ) ;
2921
+
2903
2922
Ok ( ( ) )
2904
2923
}
2905
2924
Original file line number Diff line number Diff line change @@ -580,11 +580,13 @@ impl MimeFactory {
580
580
step == "vg-request-with-auth"
581
581
|| step == "vc-request-with-auth"
582
582
|| step == "vb-request-with-auth"
583
+ // Note that for "vg-member-added" and "vb-member-added",
584
+ // get_cmd() returns `MemberAddedToGroup` rather than `SecurejoinMessage`,
585
+ // so, it wouldn't actually be necessary to have them in the list here.
586
+ // Still, they are here for completeness.
583
587
|| step == "vg-member-added"
584
588
|| step == "vb-member-added"
585
589
|| step == "vc-contact-confirm"
586
- // TODO possibly add vb-member-added here
587
- // TODO wait... for member-added messages, Param::Arg doesn't even contain the step, but the email
588
590
}
589
591
}
590
592
@@ -1183,7 +1185,6 @@ impl MimeFactory {
1183
1185
1184
1186
let shared_secret: Option < String > = match & self . loaded {
1185
1187
Loaded :: Message { msg, .. } if should_encrypt_with_auth_token ( msg) => {
1186
- // TODO rather than setting Arg2, bob.rs could set a param `Param::SharedSecretForEncryption` or similar
1187
1188
msg. param . get ( Param :: Arg2 ) . map ( |s| s. to_string ( ) )
1188
1189
}
1189
1190
Loaded :: Message { chat, msg }
Original file line number Diff line number Diff line change @@ -99,10 +99,10 @@ pub enum Param {
99
99
100
100
/// For Messages
101
101
///
102
- /// For "MemberRemovedFromGroup" this is the email address
102
+ /// For "MemberRemovedFromGroup", this is the email address
103
103
/// removed from the group.
104
104
///
105
- /// For "MemberAddedToGroup" this is the email address added to the group.
105
+ /// For "MemberAddedToGroup", this is the email address added to the group.
106
106
///
107
107
/// For securejoin messages, this is the step,
108
108
/// which is put into the `Secure-Join` header.
Original file line number Diff line number Diff line change @@ -537,8 +537,6 @@ async fn decode_openpgp(context: &Context, qr: &str) -> Result<Qr> {
537
537
( & addr, broadcast_name, grpid, authcode)
538
538
{
539
539
// This is a broadcast channel invite link.
540
- // TODO code duplication with the previous block
541
- // TODO at some point, we can mark this person as verified
542
540
let addr = ContactAddress :: new ( addr) ?;
543
541
let ( contact_id, _) = Contact :: add_or_lookup_ex (
544
542
context,
You can’t perform that action at this time.
0 commit comments