Stop returning aliases as part of the room list. (#6970)

This commit is contained in:
Patrick Cloke 2020-02-21 12:40:23 -05:00 committed by GitHub
parent 7936d2a96e
commit fcf4599488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

1
changelog.d/6970.removal Normal file
View File

@ -0,0 +1 @@
The room list endpoint no longer returns a list of aliases.

View File

@ -216,15 +216,6 @@ class RoomListHandler(BaseHandler):
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(