Merge pull request #445 from matrix-org/markjh/rebind_threepid

Allow users to change which account a 3pid is bound to
This commit is contained in:
Mark Haines 2015-12-15 17:07:47 +00:00
commit 661b76615b
1 changed files with 1 additions and 1 deletions

View File

@ -258,10 +258,10 @@ class RegistrationStore(SQLBaseStore):
@defer.inlineCallbacks
def user_add_threepid(self, user_id, medium, address, validated_at, added_at):
yield self._simple_upsert("user_threepids", {
"user_id": user_id,
"medium": medium,
"address": address,
}, {
"user_id": user_id,
"validated_at": validated_at,
"added_at": added_at,
})