diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-28 07:28:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 07:28:53 -0400 |
commit | d5e73cb6aa56fbd267ca957e64ad893a9ef28708 (patch) | |
tree | 37fad0a115287864b1031d4511958ba4bef4ab85 /synapse/handlers/room.py | |
parent | Move and refactor LoginRestServlet helper methods (#8182) (diff) | |
download | synapse-d5e73cb6aa56fbd267ca957e64ad893a9ef28708.tar.xz |
Define StateMap as immutable and add a MutableStateMap type. (#8183)
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r-- | synapse/handlers/room.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 236a37f777..1419d72e94 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -41,6 +41,7 @@ from synapse.http.endpoint import parse_and_validate_server_name from synapse.storage.state import StateFilter from synapse.types import ( JsonDict, + MutableStateMap, Requester, RoomAlias, RoomID, @@ -814,7 +815,7 @@ class RoomCreationHandler(BaseHandler): room_id: str, preset_config: str, invite_list: List[str], - initial_state: StateMap, + initial_state: MutableStateMap, creation_content: JsonDict, room_alias: Optional[RoomAlias] = None, power_level_content_override: Optional[JsonDict] = None, |