Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
AWAIT
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Oct 25, 2022
1 parent 937b0b4 commit 61a5a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/rest/client/room_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async def on_POST(
errcode=Codes.MISSING_PARAM,
)

if self.store.is_partial_state_room(room_id):
if await self.store.is_partial_state_room(room_id):
raise SynapseError(
HTTPStatus.BAD_REQUEST,
"Cannot insert history batches until we have fully joined the room",
Expand Down

0 comments on commit 61a5a3c

Please sign in to comment.