Support IS v2 auth in preview bar
This commit is contained in:
parent
244b613623
commit
dacb5d42ac
2 changed files with 13 additions and 2 deletions
|
@ -520,7 +520,12 @@ module.exports = React.createClass({
|
|||
const isAccessToken = await authClient.getAccessToken();
|
||||
if (cancelled) return null;
|
||||
|
||||
const lookup = await MatrixClientPeg.get().lookupThreePid(medium, address, undefined, isAccessToken);
|
||||
const lookup = await MatrixClientPeg.get().lookupThreePid(
|
||||
medium,
|
||||
address,
|
||||
undefined /* callback */,
|
||||
isAccessToken,
|
||||
);
|
||||
if (cancelled || lookup === null || !lookup.mxid) return null;
|
||||
|
||||
const profile = await MatrixClientPeg.get().getProfileInfo(lookup.mxid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue