diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-15 15:22:14 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-15 15:22:14 +0100 |
commit | 7d71975e6a3c247d1502e54b5aac831ee08510fb (patch) | |
tree | 11587d8c8ca98bbc20cafdf70f7453cdaa429cc8 /synapse/handlers/room.py | |
parent | Add config option to block users from looking up 3PIDs (#5010) (diff) | |
parent | update grafana dashboard (diff) | |
download | synapse-7d71975e6a3c247d1502e54b5aac831ee08510fb.tar.xz |
Merge branch 'develop' into dinsic
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 6f5666e624..d31adb367a 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -25,14 +25,9 @@ from six import iteritems, string_types from twisted.internet import defer -from synapse.api.constants import ( - DEFAULT_ROOM_VERSION, - KNOWN_ROOM_VERSIONS, - EventTypes, - JoinRules, - RoomCreationPreset, -) +from synapse.api.constants import EventTypes, JoinRules, RoomCreationPreset from synapse.api.errors import AuthError, Codes, NotFoundError, StoreError, SynapseError +from synapse.api.room_versions import DEFAULT_ROOM_VERSION, KNOWN_ROOM_VERSIONS from synapse.storage.state import StateFilter from synapse.types import RoomAlias, RoomID, RoomStreamToken, StreamToken, UserID from synapse.util import stringutils @@ -304,6 +299,7 @@ class RoomCreationHandler(BaseHandler): (EventTypes.RoomAvatar, ""), (EventTypes.Encryption, ""), (EventTypes.ServerACL, ""), + (EventTypes.RelatedGroups, ""), ) old_room_state_ids = yield self.store.get_filtered_current_state_ids( @@ -515,7 +511,7 @@ class RoomCreationHandler(BaseHandler): if ratelimit: yield self.ratelimit(requester) - room_version = config.get("room_version", DEFAULT_ROOM_VERSION) + room_version = config.get("room_version", DEFAULT_ROOM_VERSION.identifier) if not isinstance(room_version, string_types): raise SynapseError( 400, |