Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use nicer APIs for toggling a 3PID's shared status #10566
At the moment, when toggling a 3PID's shared status, Riot will:
This 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.
To change a 3PID from unshared to shared:
To change a 3PID from shared to unshared: