File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,12 @@ async function fetchPublicRooms(
40
40
abortSignal,
41
41
} ) ;
42
42
43
- // We only want to see public rooms in the archive
43
+ // We only want to see public or world_readable rooms in the archive. A room can be
44
+ // world_readable without being public. For example someone might have an invite only
45
+ // room where only privileged users are allowed to join and talk but anyone can view
46
+ // the room.
44
47
const accessibleRooms = publicRoomsRes . chunk . filter ( ( room ) => {
45
- // `room.world_readable` is also accessible here but we only use history
46
- // `world_readable` to determine search indexing.
47
- return room . join_rule === 'public' ;
48
+ return room . world_readable || room . join_rule === 'public' ;
48
49
} ) ;
49
50
50
51
return {
You can’t perform that action at this time.
0 commit comments