mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 08:54:05 -04:00
Remove pointless create() method
It just calls the constructor, so we may as well kill it rather than having random codepaths.
This commit is contained in:
parent
b4a6b7f720
commit
631d7b87b5
6 changed files with 8 additions and 12 deletions
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue