You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-24 06:02:08 +03:00
Add IS auth to AddressPickerDialog
This commit is contained in:
@ -513,7 +513,13 @@ module.exports = React.createClass({
|
||||
if (cancelled) return null;
|
||||
|
||||
try {
|
||||
const lookup = await MatrixClientPeg.get().lookupThreePid(medium, address);
|
||||
const hsAccountToken = await MatrixClientPeg.get().getOpenIdToken();
|
||||
if (cancelled) return null;
|
||||
|
||||
const isAccountToken = await MatrixClientPeg.get().registerWithIdentityServer(hsAccountToken);
|
||||
if (cancelled) return null;
|
||||
|
||||
const lookup = await MatrixClientPeg.get().lookupThreePid(medium, address, undefined, isAccountToken);
|
||||
if (cancelled || lookup === null || !lookup.mxid) return null;
|
||||
|
||||
const profile = await MatrixClientPeg.get().getProfileInfo(lookup.mxid);
|
||||
|
Reference in New Issue
Block a user