diff --git a/src/components/views/dialogs/AddressPickerDialog.js b/src/components/views/dialogs/AddressPickerDialog.js index 153f9c7792..53e630ff8f 100644 --- a/src/components/views/dialogs/AddressPickerDialog.js +++ b/src/components/views/dialogs/AddressPickerDialog.js @@ -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);