This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Seperate the action of removing a local 3pid assoc. vs unbinding from…
… an IS It's a total footgun that we conflate these together into the same method, plus there are times when you only want to remove a binding on an IS but not locally and vice versa. This commit removes the unbinding functionality from delete_threepid and changes callers to call the identity_handler method for performing an unbind instead. We also rename 'delete_and_unbind_threepid' to 'delete_local_threepid'.
- Loading branch information
1 parent
17138e3
commit ccc063e
Showing
5 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,7 +367,7 @@ def test_no_email_sent_after_removed(self) -> None: | |
|
||
# disassociate the user's email address | ||
self.get_success( | ||
self.auth_handler.delete_and_unbind_threepid( | ||
self.auth_handler.delete_local_threepid( | ||
user_id=self.user_id, medium="email", address="[email protected]" | ||
) | ||
) | ||
|