return dispatch for doInstallNewWithParams
This commit is contained in:
parent
28afb9b06c
commit
021ac75d9a
3 changed files with 42 additions and 36 deletions
28
dist/bundle.es.js
vendored
28
dist/bundle.es.js
vendored
|
@ -1300,20 +1300,22 @@ function doInstallNew(appVersion, os = null, firebaseToken = null, callbackForUs
|
|||
});
|
||||
}
|
||||
function doInstallNewWithParams(appVersion, installationId, nodeId, lbrynetVersion, os, platform, firebaseToken = null) {
|
||||
const payload = {
|
||||
app_version: appVersion
|
||||
return dispatch => {
|
||||
const payload = {
|
||||
app_version: appVersion
|
||||
};
|
||||
|
||||
if (firebaseToken) {
|
||||
payload.firebase_token = firebaseToken;
|
||||
}
|
||||
|
||||
payload.app_id = installationId;
|
||||
payload.node_id = nodeId;
|
||||
payload.daemon_version = lbrynetVersion;
|
||||
payload.operating_system = os;
|
||||
payload.platform = platform;
|
||||
Lbryio.call('install', 'new', payload);
|
||||
};
|
||||
|
||||
if (firebaseToken) {
|
||||
payload.firebase_token = firebaseToken;
|
||||
}
|
||||
|
||||
payload.app_id = installationId;
|
||||
payload.node_id = nodeId;
|
||||
payload.daemon_version = lbrynetVersion;
|
||||
payload.operating_system = os;
|
||||
payload.platform = platform;
|
||||
Lbryio.call('install', 'new', payload);
|
||||
} // TODO: Call doInstallNew separately so we don't have to pass appVersion and os_system params?
|
||||
|
||||
function doAuthenticate(appVersion, os = null, firebaseToken = null, shareUsageData = true, callbackForUsersWhoAreSharingData, callInstall = true) {
|
||||
|
|
28
dist/bundle.js
vendored
28
dist/bundle.js
vendored
|
@ -4933,20 +4933,22 @@ function doInstallNew(appVersion) {
|
|||
}
|
||||
function doInstallNewWithParams(appVersion, installationId, nodeId, lbrynetVersion, os, platform) {
|
||||
var firebaseToken = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null;
|
||||
var payload = {
|
||||
app_version: appVersion
|
||||
return function (dispatch) {
|
||||
var payload = {
|
||||
app_version: appVersion
|
||||
};
|
||||
|
||||
if (firebaseToken) {
|
||||
payload.firebase_token = firebaseToken;
|
||||
}
|
||||
|
||||
payload.app_id = installationId;
|
||||
payload.node_id = nodeId;
|
||||
payload.daemon_version = lbrynetVersion;
|
||||
payload.operating_system = os;
|
||||
payload.platform = platform;
|
||||
lbryio__WEBPACK_IMPORTED_MODULE_5__["default"].call('install', 'new', payload);
|
||||
};
|
||||
|
||||
if (firebaseToken) {
|
||||
payload.firebase_token = firebaseToken;
|
||||
}
|
||||
|
||||
payload.app_id = installationId;
|
||||
payload.node_id = nodeId;
|
||||
payload.daemon_version = lbrynetVersion;
|
||||
payload.operating_system = os;
|
||||
payload.platform = platform;
|
||||
lbryio__WEBPACK_IMPORTED_MODULE_5__["default"].call('install', 'new', payload);
|
||||
} // TODO: Call doInstallNew separately so we don't have to pass appVersion and os_system params?
|
||||
|
||||
function doAuthenticate(appVersion) {
|
||||
|
|
|
@ -81,17 +81,19 @@ export function doInstallNewWithParams(
|
|||
platform,
|
||||
firebaseToken = null
|
||||
) {
|
||||
const payload = { app_version: appVersion };
|
||||
if (firebaseToken) {
|
||||
payload.firebase_token = firebaseToken;
|
||||
}
|
||||
return dispatch => {
|
||||
const payload = { app_version: appVersion };
|
||||
if (firebaseToken) {
|
||||
payload.firebase_token = firebaseToken;
|
||||
}
|
||||
|
||||
payload.app_id = installationId;
|
||||
payload.node_id = nodeId;
|
||||
payload.daemon_version = lbrynetVersion;
|
||||
payload.operating_system = os;
|
||||
payload.platform = platform;
|
||||
Lbryio.call('install', 'new', payload);
|
||||
payload.app_id = installationId;
|
||||
payload.node_id = nodeId;
|
||||
payload.daemon_version = lbrynetVersion;
|
||||
payload.operating_system = os;
|
||||
payload.platform = platform;
|
||||
Lbryio.call('install', 'new', payload);
|
||||
};
|
||||
}
|
||||
|
||||
// TODO: Call doInstallNew separately so we don't have to pass appVersion and os_system params?
|
||||
|
|
Loading…
Reference in a new issue