Changeset View
Changeset View
Standalone View
Standalone View
lib/actions/user-actions.js
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
}); | }); | ||||
const logInCallServerEndpointOptions = { timeout: 60000 }; | const logInCallServerEndpointOptions = { timeout: 60000 }; | ||||
const logIn = | const logIn = | ||||
( | ( | ||||
callServerEndpoint: CallServerEndpoint, | callServerEndpoint: CallServerEndpoint, | ||||
): ((logInInfo: LogInInfo) => Promise<LogInResult>) => | ): ((logInInfo: LogInInfo) => Promise<LogInResult>) => | ||||
async logInInfo => { | async logInInfo => { | ||||
const watchedIDs = threadWatcher.getWatchedIDs(); | const watchedIDs = threadWatcher.getWatchedIDs(); | ||||
const { | const { logInActionSource, signedIdentityKeysBlob, ...restLogInInfo } = | ||||
logInActionSource, | logInInfo; | ||||
primaryIdentityPublicKeys, | |||||
notificationIdentityPublicKeys, | |||||
...restLogInInfo | |||||
} = logInInfo; | |||||
const response = await callServerEndpoint( | const response = await callServerEndpoint( | ||||
'log_in', | 'log_in', | ||||
{ | { | ||||
...restLogInInfo, | ...restLogInInfo, | ||||
source: logInActionSource, | source: logInActionSource, | ||||
watchedIDs, | watchedIDs, | ||||
platformDetails: getConfig().platformDetails, | platformDetails: getConfig().platformDetails, | ||||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |