Changeset View
Changeset View
Standalone View
Standalone View
native/selectors/account-selectors.js
Show All 18 Lines | ) => () => Promise<LogInExtraInfo> = createSelector( | ||||
(input: NavPlusRedux) => logInExtraInfoSelector(input.redux), | (input: NavPlusRedux) => logInExtraInfoSelector(input.redux), | ||||
(input: NavPlusRedux) => calendarActiveSelector(input.navContext), | (input: NavPlusRedux) => calendarActiveSelector(input.navContext), | ||||
( | ( | ||||
logInExtraInfoFunc: (calendarActive: boolean) => LogInExtraInfo, | logInExtraInfoFunc: (calendarActive: boolean) => LogInExtraInfo, | ||||
calendarActive: boolean, | calendarActive: boolean, | ||||
) => { | ) => { | ||||
const loginExtraFuncWithIdentityKey = async () => { | const loginExtraFuncWithIdentityKey = async () => { | ||||
await commCoreModule.initializeCryptoAccount(); | await commCoreModule.initializeCryptoAccount(); | ||||
const { ed25519 } = await commCoreModule.getUserPublicKey(); | const { | ||||
primaryIdentityPublicKeys: { ed25519 }, | |||||
} = await commCoreModule.getUserPublicKey(); | |||||
return { | return { | ||||
...logInExtraInfoFunc(calendarActive), | ...logInExtraInfoFunc(calendarActive), | ||||
primaryIdentityPublicKey: ed25519, | primaryIdentityPublicKey: ed25519, | ||||
}; | }; | ||||
}; | }; | ||||
return loginExtraFuncWithIdentityKey; | return loginExtraFuncWithIdentityKey; | ||||
}, | }, | ||||
); | ); | ||||
Show All 20 Lines |