WebAPI.getProfileURL: Use profileKeyVersion by itself if we have it
This commit is contained in:
@@ -914,11 +914,16 @@ export function initialize({
|
||||
profileKeyVersion?: string,
|
||||
profileKeyCredentialRequest?: string
|
||||
) {
|
||||
let profileUrl = `/${identifier}`;
|
||||
|
||||
if (profileKeyVersion) {
|
||||
profileUrl += `/${profileKeyVersion}`;
|
||||
}
|
||||
if (profileKeyVersion && profileKeyCredentialRequest) {
|
||||
return `/${identifier}/${profileKeyVersion}/${profileKeyCredentialRequest}`;
|
||||
profileUrl += `/${profileKeyCredentialRequest}`;
|
||||
}
|
||||
|
||||
return `/${identifier}`;
|
||||
return profileUrl;
|
||||
}
|
||||
|
||||
async function getProfile(
|
||||
|
Reference in New Issue
Block a user