summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2017-10-23 11:06:57 +0100
committerGitHub <noreply@github.com>2017-10-23 11:06:57 +0100
commitbd0d84bf92ff98f859d6f5a9bf68b37978db89c0 (patch)
treed0b93dc743a38764ea5d240889fbc72804786486 /synapse/handlers/room.py
parentMerge pull request #2559 from matrix-org/erikj/group_id_validation (diff)
parentRemove pointless create() method (diff)
downloadsynapse-bd0d84bf92ff98f859d6f5a9bf68b37978db89c0.tar.xz
Merge pull request #2560 from matrix-org/rav/kill_pointless_method
Remove pointless create() method
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 535ba9517c..e945bd35bc 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -91,7 +91,7 @@ class RoomCreationHandler(BaseHandler):
                 if wchar in config["room_alias_name"]:
                     raise SynapseError(400, "Invalid characters in room alias")
 
-            room_alias = RoomAlias.create(
+            room_alias = RoomAlias(
                 config["room_alias_name"],
                 self.hs.hostname,
             )
@@ -123,7 +123,7 @@ class RoomCreationHandler(BaseHandler):
         while attempts < 5:
             try:
                 random_string = stringutils.random_string(18)
-                gen_room_id = RoomID.create(
+                gen_room_id = RoomID(
                     random_string,
                     self.hs.hostname,
                 )