mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-17 18:20:28 -04:00
Refactor arguments of try_unbind_threepid(_with_id_server)
from dict to separate args (#15053)
This commit is contained in:
parent
c10e131250
commit
bdccfd2477
5 changed files with 28 additions and 39 deletions
|
@ -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"}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue