diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2023-02-13 12:12:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-13 12:12:48 +0000 |
commit | bdccfd24773d7482ae497263634312640dab01d1 (patch) | |
tree | c295c637e9f5e1e97f70f0bac4cb8ca724419dda /synapse/rest | |
parent | Apply logging from hotfixes branch to develop (#15054) (diff) | |
download | synapse-bdccfd24773d7482ae497263634312640dab01d1.tar.xz |
Refactor arguments of `try_unbind_threepid(_with_id_server)` from dict to separate args (#15053)
Diffstat (limited to 'synapse/rest')
-rw-r--r-- | synapse/rest/client/account.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/rest/client/account.py b/synapse/rest/client/account.py index 232f3a976d..662f5bf762 100644 --- a/synapse/rest/client/account.py +++ b/synapse/rest/client/account.py @@ -737,12 +737,7 @@ class ThreepidUnbindRestServlet(RestServlet): # Attempt to unbind the threepid from an identity server. If id_server is None, try to # unbind from all identity servers this threepid has been added to in the past result = await self.identity_handler.try_unbind_threepid( - requester.user.to_string(), - { - "address": body.address, - "medium": body.medium, - "id_server": body.id_server, - }, + requester.user.to_string(), body.medium, body.address, body.id_server ) return 200, {"id_server_unbind_result": "success" if result else "no-support"} |