Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Stop returning aliases as part of the room list. (#6970)
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored Feb 21, 2020
1 parent 7936d2a commit fcf4599
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions changelog.d/6970.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The room list endpoint no longer returns a list of aliases.
9 changes: 0 additions & 9 deletions synapse/handlers/room_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,6 @@ def build_room_entry(room):
direction_is_forward=False,
).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["total_room_count_estimate"] = yield self.store.count_public_rooms(
Expand Down

0 comments on commit fcf4599

Please sign in to comment.