Lift 3PID state management up to Settings tab
This pulls the 3PID state management in Settings up to a single location so that the Account and Discovery sections now work from a single list that updates immediately. Fixes https://github.com/vector-im/riot-web/issues/10519
This commit is contained in:
parent
1703913118
commit
f04c347df7
7 changed files with 77 additions and 77 deletions
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||
|
||||
import IdentityAuthClient from './IdentityAuthClient';
|
||||
|
||||
export async function getThreepidBindStatus(client, filterMedium) {
|
||||
export async function getThreepidsWithBindStatus(client, filterMedium) {
|
||||
const userId = client.getUserId();
|
||||
|
||||
let { threepids } = await client.getThreePids();
|
||||
|
@ -24,7 +24,8 @@ export async function getThreepidBindStatus(client, filterMedium) {
|
|||
threepids = threepids.filter((a) => a.medium === filterMedium);
|
||||
}
|
||||
|
||||
if (threepids.length > 0) {
|
||||
// Check bind status assuming we have an IS and terms are agreed
|
||||
if (threepids.length > 0 && client.getIdentityServerUrl()) {
|
||||
// TODO: Handle terms agreement
|
||||
// See https://github.com/vector-im/riot-web/issues/10522
|
||||
const authClient = new IdentityAuthClient();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue