mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Stop returning aliases as part of the room list. (#6970)
This commit is contained in:
parent
7936d2a96e
commit
fcf4599488
1
changelog.d/6970.removal
Normal file
1
changelog.d/6970.removal
Normal file
@ -0,0 +1 @@
|
|||||||
|
The room list endpoint no longer returns a list of aliases.
|
@ -216,15 +216,6 @@ class RoomListHandler(BaseHandler):
|
|||||||
direction_is_forward=False,
|
direction_is_forward=False,
|
||||||
).to_token()
|
).to_token()
|
||||||
|
|
||||||
for room in results:
|
|
||||||
# populate search result entries with additional fields, namely
|
|
||||||
# 'aliases'
|
|
||||||
room_id = room["room_id"]
|
|
||||||
|
|
||||||
aliases = yield self.store.get_aliases_for_room(room_id)
|
|
||||||
if aliases:
|
|
||||||
room["aliases"] = aliases
|
|
||||||
|
|
||||||
response["chunk"] = results
|
response["chunk"] = results
|
||||||
|
|
||||||
response["total_room_count_estimate"] = yield self.store.count_public_rooms(
|
response["total_room_count_estimate"] = yield self.store.count_public_rooms(
|
||||||
|
Loading…
Reference in New Issue
Block a user