Refactor arguments of try_unbind_threepid(_with_id_server) from dict to separate args (#15053)

This commit is contained in:
Andrew Morgan 2023-02-13 12:12:48 +00:00 committed by GitHub
parent c10e131250
commit bdccfd2477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 39 deletions

View file

@ -1593,9 +1593,8 @@ class AuthHandler:
if medium == "email":
address = canonicalise_email(address)
identity_handler = self.hs.get_identity_handler()
result = await identity_handler.try_unbind_threepid(
user_id, {"medium": medium, "address": address, "id_server": id_server}
result = await self.hs.get_identity_handler().try_unbind_threepid(
user_id, medium, address, id_server
)
await self.store.user_delete_threepid(user_id, medium, address)