File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -4895,6 +4895,7 @@ async fn test_protected_group_add_remove_member_missing_key() -> Result<()> {
4895
4895
. await ?;
4896
4896
4897
4897
let fiona = & tcm. fiona ( ) . await ;
4898
+ let fiona_addr = fiona. get_config ( Config :: Addr ) . await ?. unwrap ( ) ;
4898
4899
mark_as_verified ( alice, fiona) . await ;
4899
4900
let alice_fiona_id = alice. add_or_lookup_contact ( fiona) . await . id ;
4900
4901
assert ! ( add_contact_to_chat( alice, group_id, alice_fiona_id)
@@ -4903,6 +4904,12 @@ async fn test_protected_group_add_remove_member_missing_key() -> Result<()> {
4903
4904
// Sending the message failed,
4904
4905
// but member is added to the chat locally already.
4905
4906
assert ! ( is_contact_in_chat( alice, group_id, alice_fiona_id) . await ?) ;
4907
+ let msg = alice. get_last_msg_in ( group_id) . await ;
4908
+ assert ! ( msg. is_info( ) ) ;
4909
+ assert_eq ! (
4910
+ msg. get_text( ) ,
4911
+ stock_str:: msg_add_member_local( alice, & fiona_addr, ContactId :: SELF ) . await
4912
+ ) ;
4906
4913
4907
4914
// Now the chat has a message "You added member fiona@example.net. [INFO] !!" (with error) that
4908
4915
// may be confusing, but if the error is displayed in UIs, it's more or less ok. This is not a
You can’t perform that action at this time.
0 commit comments