summary refs log tree commit diff
path: root/synapse/storage/directory.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-05 21:35:56 +0100
committerErik Johnston <erik@matrix.org>2014-09-05 21:35:56 +0100
commit9dd4570b68fea123fda216b8fc8625fafc9d8e0a (patch)
treebf87c16f720a7ad34d29d4b2a8b462506c919624 /synapse/storage/directory.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-9dd4570b68fea123fda216b8fc8625fafc9d8e0a.tar.xz
Generate m.room.aliases event when the HS creates a room alias
Diffstat (limited to 'synapse/storage/directory.py')
-rw-r--r--synapse/storage/directory.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/storage/directory.py b/synapse/storage/directory.py
index bf55449253..540eb4c2c4 100644
--- a/synapse/storage/directory.py
+++ b/synapse/storage/directory.py
@@ -92,3 +92,10 @@ class DirectoryStore(SQLBaseStore):
                     "server": server,
                 }
             )
+
+    def get_aliases_for_room(self, room_id):
+        return self._simple_select_onecol(
+            "room_aliases",
+            {"room_id": room_id},
+            "room_alias",
+        )