summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-24 13:16:51 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-24 13:16:51 +0000
commit794a3d16daeab3b41132e886ed6ea263970be4d0 (patch)
treebc68208f66107524bd5cab4e31f21ffb3c3d1a69 /synapse/handlers
parentClarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) (diff)
parentStop returning aliases as part of the room list. (#6970) (diff)
downloadsynapse-794a3d16daeab3b41132e886ed6ea263970be4d0.tar.xz
Stop returning aliases as part of the room list. (#6970)
* commit 'fcf459948':
  Stop returning aliases as part of the room list. (#6970)
  Publishing/removing from the directory requires a power level greater than canonical aliases.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/room_list.py9
1 files changed, 0 insertions, 9 deletions
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(