summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/knock.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/client/v2_alpha/knock.py')
-rw-r--r--synapse/rest/client/v2_alpha/knock.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/knock.py b/synapse/rest/client/v2_alpha/knock.py

index 75b7f665c9..51dac88fc7 100644 --- a/synapse/rest/client/v2_alpha/knock.py +++ b/synapse/rest/client/v2_alpha/knock.py
@@ -25,6 +25,7 @@ from synapse.http.servlet import ( parse_json_object_from_request, parse_list_from_args, ) +from synapse.http.site import SynapseRequest from synapse.logging.opentracing import set_tag from synapse.rest.client.transactions import HttpTransactionCache from synapse.types import JsonDict, RoomAlias, RoomID @@ -54,7 +55,7 @@ class KnockRoomAliasServlet(RestServlet): async def on_POST( self, - request: Request, + request: SynapseRequest, room_identifier: str, txn_id: Optional[str] = None, ) -> Tuple[int, JsonDict]: @@ -68,7 +69,7 @@ class KnockRoomAliasServlet(RestServlet): if RoomID.is_valid(room_identifier): room_id = room_identifier try: - remote_room_hosts = parse_list_from_args(request.args, "server_name") + remote_room_hosts = parse_list_from_args(request.args, "server_name") # type: ignore except KeyError: remote_room_hosts = None elif RoomAlias.is_valid(room_identifier):