Skip to content

Commit

Permalink
Send user ID and username to legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Apr 23, 2019
1 parent 835a4aa commit 9164398
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/embed/src/setups/legacy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function toAzureLocale(language) {
}
}

export default async function setupLegacyVersionFamily(_, { botId }, { language, secret, token }, features = []) {
export default async function setupLegacyVersionFamily(_, { botId, userId }, { language, secret, token, username }, features = []) {
// Version 1 also depends on your token.
// If you are using a token on Aries, you get Aries (v1).
// If you are using a token on Scorpio, you get Scorpio (v3).
Expand All @@ -27,6 +27,8 @@ export default async function setupLegacyVersionFamily(_, { botId }, { language,
azureLocale && params.set('l', azureLocale);
secret && params.set('s', secret);
token && params.set('t', token);
userId && params.set('userid', userId);
username && params.set('username', username);

await loadIFRAME(legacyEmbedURL(botId, params));
}

0 comments on commit 9164398

Please sign in to comment.