matrix-public-archive/shared/viewmodels
Eric Eastwood dd2cd9126d
Only show `world_readable` rooms in the room directory (#276)
Happens to address part of https://github.com/matrix-org/matrix-public-archive/issues/271
but made primarily as a follow-up to https://github.com/matrix-org/matrix-public-archive/pull/239

---

Only 42% rooms on the `matrix.org` room directory are `world_readable` which means we will get pages of rooms that are half-empty most of the time if we just naively fetch 9 rooms at a time.

Ideally, we would be able to just add a filter directly to `/publicRooms` in order to only grab the `world_readable` rooms and still get full pages but the filter option doesn't allow us to slice by `world_readable` history visibility.

Instead, we have to paginate until we get a full grid of 9 rooms, then make a final `/publicRooms` request to backtrack to the exact continuation point so next page won't skip any rooms in between.

---

We had empty spaces in the grid before because some rooms in the room directory are private which we filtered out before. But that was a much more rare experience since only 2% of rooms were private .
2023-06-30 03:08:32 -05:00
..
ArchiveRoomViewModel.js Indicate when the room was set to `world_readable` and by who (#278) 2023-06-28 20:29:49 -05:00
AvatarViewModel.js Add safe search filter for NSFW rooms (#208) 2023-05-03 04:45:33 -05:00
CalendarViewModel.js Add a way to select time of day (#139) 2023-04-05 04:25:31 -05:00
DeveloperOptionsContentViewModel.js Fix checkbox being checked by default when the value was actually `null` (#221) 2023-05-05 19:44:49 -05:00
HomeserverSelectionModalContentViewModel.js Add homeserver selector to room directory landing page (#87) 2022-10-20 02:06:43 -05:00
JumpToNextActivitySummaryTileViewModel.js Follow tombstone and predecessor history (#167) 2023-04-19 01:26:15 -05:00
JumpToPreviousActivitySummaryTileViewModel.js Follow tombstone and predecessor history (#167) 2023-04-19 01:26:15 -05:00
ModalViewModel.js Add support for room aliases (#107) 2022-10-27 01:09:13 -05:00
RoomCardViewModel.js Add safe search filter for NSFW rooms (#208) 2023-05-03 04:45:33 -05:00
RoomDirectoryViewModel.js Only show `world_readable` rooms in the room directory (#276) 2023-06-30 03:08:32 -05:00
TimeSelectorViewModel.js Add a way to select time of day (#139) 2023-04-05 04:25:31 -05:00