Use nicer APIs for toggling a 3PID's shared status #2654
Labels
A-Identity-Server
feature
privacy
privacy-sprint
T-Enhancement
New features, changes in functionality, performance boosts, user-facing improvements
At the moment, when toggling a 3PID's shared status, Riot will:
POST /_matrix/client/r0/account/3pid/delete
POST /_matrix/client/r0/account/3pid/[email|msisdn]/requestToken
and setting thebind
flag to the new statusThis is not great in general, as it's not atomic, so if you never act on the validation token, then you have actually entirely removed the 3PID from your account.
Instead we should change to the new APIs tracked in matrix-org/synapse#5827 and matrix-org/synapse#5862.
To change a 3PID from unshared to shared:
POST /_matrix/client/r0/account/3pid/[email|msisdn]/requestToken
and setting thebind
flag to the new statusTo change a 3PID from shared to unshared:
POST /_matrix/client/r0/account/3pid/unbind
The text was updated successfully, but these errors were encountered: