mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-11 02:30:21 +08:00
fix(identity): enable proper People support
This commit is contained in:
parent
b960a0bef7
commit
75a785e683
1 changed files with 5 additions and 3 deletions
|
@ -68,10 +68,12 @@ export function buildGmailAuthURL(sessionKey) {
|
|||
}
|
||||
|
||||
export function buildWelcomeURL(welcomeRoot, {source}) {
|
||||
const identityId = IdentityStore.identityId();
|
||||
if (!identityId) { NylasEnv.reportError(new Error("buildWelcomeURL: Can't find Nylas ID")) }
|
||||
const identity = IdentityStore.identity();
|
||||
if (!identity || !identity.id) { NylasEnv.reportError(new Error("buildWelcomeURL: Can't find Nylas ID")) }
|
||||
const query = {
|
||||
n: base64url(identityId),
|
||||
f: base64url(identity.firstname),
|
||||
l: base64url(identity.lastname),
|
||||
n: base64url(identity.id),
|
||||
utm_medium: "N1",
|
||||
}
|
||||
if (source) { query.utm_source = source }
|
||||
|
|
Loading…
Reference in a new issue