diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-01-31 10:06:21 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-01-31 10:06:21 +0000 |
commit | d7bf793cc1e3f5268285286341835ac54753eff6 (patch) | |
tree | 8554590b143b95f83c4a60f89a8bbbf334e3c636 /synapse/handlers/message.py | |
parent | pass room version into FederationHandler.on_invite_request (#6805) (diff) | |
download | synapse-d7bf793cc1e3f5268285286341835ac54753eff6.tar.xz |
s/get_room_version/get_room_version_id/
... to make way for a forthcoming get_room_version which returns a RoomVersion object.
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 9a0f661b9b..bdf16c84d3 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -459,7 +459,9 @@ class EventCreationHandler(object): room_version = event_dict["content"]["room_version"] else: try: - room_version = yield self.store.get_room_version(event_dict["room_id"]) + room_version = yield self.store.get_room_version_id( + event_dict["room_id"] + ) except NotFoundError: raise AuthError(403, "Unknown room") @@ -788,7 +790,7 @@ class EventCreationHandler(object): ): room_version = event.content.get("room_version", RoomVersions.V1.identifier) else: - room_version = yield self.store.get_room_version(event.room_id) + room_version = yield self.store.get_room_version_id(event.room_id) event_allowed = yield self.third_party_event_rules.check_event_allowed( event, context @@ -963,7 +965,7 @@ class EventCreationHandler(object): auth_events = yield self.store.get_events(auth_events_ids) auth_events = {(e.type, e.state_key): e for e in auth_events.values()} - room_version = yield self.store.get_room_version(event.room_id) + room_version = yield self.store.get_room_version_id(event.room_id) room_version_obj = KNOWN_ROOM_VERSIONS[room_version] if event_auth.check_redaction( |