File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2705,6 +2705,7 @@ async fn test_broadcast_channels() -> Result<()> {
2705
2705
let rcvd = bob. recv_msg ( & sent) . await ;
2706
2706
assert_eq ! ( rcvd. get_info_type( ) , SystemMessage :: GroupImageChanged ) ;
2707
2707
assert_eq ! ( rcvd. text, "Group image changed by alice@example.org." ) ;
2708
+ assert_eq ! ( rcvd. chat_id, bob_chat. id) ;
2708
2709
2709
2710
let bob_chat = Chat :: load_from_db ( bob, bob_chat. id ) . await ?;
2710
2711
let avatar = bob_chat. get_profile_image ( bob) . await ?. unwrap ( ) ;
@@ -2713,6 +2714,14 @@ async fn test_broadcast_channels() -> Result<()> {
2713
2714
AVATAR_64x64_DEDUPLICATED
2714
2715
) ;
2715
2716
2717
+ tcm. section ( "Check that Bob can't modify the channel" ) ;
2718
+ set_chat_profile_image ( & bob, bob_chat. id , file. to_str ( ) . unwrap ( ) )
2719
+ . await
2720
+ . unwrap_err ( ) ;
2721
+ set_chat_name ( bob, bob_chat. id , "Bob Channel name" )
2722
+ . await
2723
+ . unwrap_err ( ) ;
2724
+
2716
2725
Ok ( ( ) )
2717
2726
}
2718
2727
You can’t perform that action at this time.
0 commit comments