This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ from synapse.storage.databases.main.events_bg_updates import (
4747from synapse .storage .databases .main .media_repository import (
4848 MediaRepositoryBackgroundUpdateStore ,
4949)
50- from synapse .storage .databases .main .pusher import PusherWorkerStore
5150from synapse .storage .databases .main .profile import ProfileStore
51+ from synapse .storage .databases .main .pusher import PusherWorkerStore
5252from synapse .storage .databases .main .registration import (
5353 RegistrationBackgroundUpdateStore ,
5454 find_max_generated_user_id_localpart ,
Original file line number Diff line number Diff line change @@ -87,8 +87,8 @@ def __init__(self, hs: "HomeServer"):
8787 )
8888
8989 if len (self .hs .config .replicate_user_profiles_to ) > 0 :
90- reactor .callWhenRunning (self ._do_assign_profile_replication_batches )
91- reactor .callWhenRunning (self ._start_replicate_profiles )
90+ reactor .callWhenRunning (self ._do_assign_profile_replication_batches ) # type: ignore
91+ reactor .callWhenRunning (self ._start_replicate_profiles ) # type: ignore
9292 # Add a looping call to replicate_profiles: this handles retries
9393 # if the replication is unsuccessful when the user updated their
9494 # profile.
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ async def _serialize_payload( # type: ignore
146146
147147 async def _handle_request ( # type: ignore
148148 self ,
149- request : Request ,
149+ request : SynapseRequest ,
150150 room_id : str ,
151151 user_id : str ,
152152 ):
@@ -284,7 +284,7 @@ async def _serialize_payload( # type: ignore
284284
285285 async def _handle_request ( # type: ignore
286286 self ,
287- request : Request ,
287+ request : SynapseRequest ,
288288 knock_event_id : str ,
289289 ):
290290 content = parse_json_object_from_request (request )
Original file line number Diff line number Diff line change 2525 parse_json_object_from_request ,
2626 parse_list_from_args ,
2727)
28+ from synapse .http .site import SynapseRequest
2829from synapse .logging .opentracing import set_tag
2930from synapse .rest .client .transactions import HttpTransactionCache
3031from synapse .types import JsonDict , RoomAlias , RoomID
@@ -54,7 +55,7 @@ def __init__(self, hs: "HomeServer"):
5455
5556 async def on_POST (
5657 self ,
57- request : Request ,
58+ request : SynapseRequest ,
5859 room_identifier : str ,
5960 txn_id : Optional [str ] = None ,
6061 ) -> Tuple [int , JsonDict ]:
@@ -68,7 +69,7 @@ async def on_POST(
6869 if RoomID .is_valid (room_identifier ):
6970 room_id = room_identifier
7071 try :
71- remote_room_hosts = parse_list_from_args (request .args , "server_name" )
72+ remote_room_hosts = parse_list_from_args (request .args , "server_name" ) # type: ignore
7273 except KeyError :
7374 remote_room_hosts = None
7475 elif RoomAlias .is_valid (room_identifier ):
You can’t perform that action at this time.
0 commit comments