diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2024-03-28 20:40:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 20:40:45 +0100 |
commit | b732eede2738dcf88727b403fa1e9494466bf7a8 (patch) | |
tree | 752d15a2f0ced45276a59251d5b7d207830da33f /clientapi | |
parent | ad0a7d09e89fe18c9e2b08f23f5817a5231c6074 (diff) |
Fix spaces over federation (#3347)
Fixes #2504
A few issues with the previous iteration:
- We never returned `inaccessible_children`, which (if I read the code
correctly), made Synapse raise an error and thus not returning the
requested rooms
- For restricted rooms, we didn't return the list of allowed rooms
Diffstat (limited to 'clientapi')
-rw-r--r-- | clientapi/routing/room_hierarchy.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clientapi/routing/room_hierarchy.go b/clientapi/routing/room_hierarchy.go index 2884d2c3..cf9d43dd 100644 --- a/clientapi/routing/room_hierarchy.go +++ b/clientapi/routing/room_hierarchy.go @@ -138,7 +138,7 @@ func QueryRoomHierarchy(req *http.Request, device *userapi.Device, roomIDStr str walker = *cachedWalker } - discoveredRooms, nextWalker, err := rsAPI.QueryNextRoomHierarchyPage(req.Context(), walker, limit) + discoveredRooms, _, nextWalker, err := rsAPI.QueryNextRoomHierarchyPage(req.Context(), walker, limit) if err != nil { switch err.(type) { |