Only show `world_readable` rooms in the room directory
Part of https://github.com/matrix-org/matrix-public-archive/issues/271
This commit is contained in:
parent
ff18a46283
commit
58d80281bb
|
@ -40,11 +40,9 @@ async function fetchPublicRooms(
|
||||||
abortSignal,
|
abortSignal,
|
||||||
});
|
});
|
||||||
|
|
||||||
// We only want to see public rooms in the archive
|
// We only want to see world_readable rooms in the archive
|
||||||
const accessibleRooms = publicRoomsRes.chunk.filter((room) => {
|
const accessibleRooms = publicRoomsRes.chunk.filter((room) => {
|
||||||
// `room.world_readable` is also accessible here but we only use history
|
return room.world_readable;
|
||||||
// `world_readable` to determine search indexing.
|
|
||||||
return room.join_rule === 'public';
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue