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

Commit

Permalink
Use get_device (fixing in upstream develop)
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Dec 13, 2021
1 parent 11e2192 commit 63042ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ async def _get_appservice_user_id_and_device_id(
effective_device_id = request.args[DEVICE_ID_ARG_NAME][0].decode("utf8")
# We only just set this so it can't be None!
assert effective_device_id is not None
device_opt = await self.store.get_device_opt(
device_opt = await self.store.get_device(
effective_user_id, effective_device_id
)
if device_opt is None:
Expand Down

0 comments on commit 63042ac

Please sign in to comment.