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

Add /account/3pid/delete endpoint #1714

Merged
merged 1 commit into from
Dec 21, 2016
Merged

Add /account/3pid/delete endpoint #1714

merged 1 commit into from
Dec 21, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Dec 20, 2016

Also fix a typo in a comment

Also fix a typo in a comment
@@ -617,6 +617,17 @@ def add_threepid(self, user_id, medium, address, validated_at):
self.hs.get_clock().time_msec()
)

@defer.inlineCallbacks
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be nice to fix the s/presenc e/presence/ typo on line 610

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, although accidentally on develop.

@@ -617,6 +617,17 @@ def add_threepid(self, user_id, medium, address, validated_at):
self.hs.get_clock().time_msec()
)

@defer.inlineCallbacks
def delete_threepid(self, user_id, medium, address):
# 'Canonicalise' email addresses as per above
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're going to hate me for asking this, but: should we be canonicalising MSISDNs here? or are we assuming the client has already determined normal form? (If so, a comment would be useful)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, the msisdn canonicalisation will have been done by the ID server (or the thing doing the verification). In fact, with us now having decided to have a separate thing to do the actual validation of 3pids, the email canonicalisation would go there too (it's a bit tricky for email given that squelching the localpart down to lowercase is not technically valid).

@ara4n ara4n assigned ara4n and unassigned NegativeMjark Dec 20, 2016
@ara4n
Copy link
Member

ara4n commented Dec 20, 2016

lgtm other than 2 comments

@ara4n ara4n assigned dbkr and unassigned ara4n Dec 20, 2016
@dbkr dbkr merged commit bea15fb into develop Dec 21, 2016
dbkr added a commit to matrix-org/matrix-js-sdk that referenced this pull request Dec 21, 2016
@dbkr dbkr deleted the dbkr/delete_threepid branch October 17, 2017 12:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants