Skip to content

Commit

Permalink
We return public, not just world_readable
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion committed Dec 21, 2015
1 parent 232d4d4 commit e464c29
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions tests/30rooms/60anonymousaccess.pl
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,17 @@ sub check_events
matrix_create_room( $user,
visibility => "public",
room_alias_name => "nonworldreadable",
),
)->then( sub {
my ( $room_id ) = @_;

matrix_put_room_state( $user, $room_id,
type => "m.room.avatar",
state_key => "",
content => {
url => "https://example.com/ruffed.jpg",
}
);
}),

matrix_create_room( $user,
visibility => "public",
Expand Down Expand Up @@ -743,8 +753,8 @@ sub check_events
$seen{worldreadable} = 1;
}
elsif( $alias =~ m/^\Q#nonworldreadable:/ ) {
defined $room->{avatar_url} and
croak "Expected no avatar_url but was ".$room->{avatar_url};
assert_json_keys( $room, qw( avatar_url ) );
assert_eq( $room->{avatar_url}, "https://example.com/ruffed.jpg", "avatar_url" );
$seen{nonworldreadable} = 1;
}
}
Expand Down

0 comments on commit e464c29

Please sign in to comment.