summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-02-21 12:40:23 -0500
committerGitHub <noreply@github.com>2020-02-21 12:40:23 -0500
commitfcf45994881d652571d965547b2287d796f798fc (patch)
tree761bd1fd943f40fbb6230b5ee69687e29d01c67d
parentPublishing/removing from the directory requires a power level greater than ca... (diff)
downloadsynapse-fcf45994881d652571d965547b2287d796f798fc.tar.xz
Stop returning aliases as part of the room list. (#6970)
-rw-r--r--changelog.d/6970.removal1
-rw-r--r--synapse/handlers/room_list.py9
2 files changed, 1 insertions, 9 deletions
diff --git a/changelog.d/6970.removal b/changelog.d/6970.removal
new file mode 100644
index 0000000000..89bd363b95
--- /dev/null
+++ b/changelog.d/6970.removal
@@ -0,0 +1 @@
+The room list endpoint no longer returns a list of aliases.
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py
index c615206df1..0b7d3da680 100644
--- a/synapse/handlers/room_list.py
+++ b/synapse/handlers/room_list.py
@@ -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(