add window.lokiFeatureFlags.onionRequestPaths and turn on onion_requests using one hop

pull/1085/head
Ryan Tharp 5 years ago
parent a3f51648a5
commit 203da4544a

@ -414,7 +414,8 @@ window.lokiFeatureFlags = {
privateGroupChats: true,
useSnodeProxy: !process.env.USE_STUBBED_NETWORK,
useSealedSender: true,
useOnionRequests: false,
useOnionRequests: true,
onionRequestPaths: 1,
};
// eslint-disable-next-line no-extend-native,func-names
@ -440,14 +441,7 @@ if (
};
/* eslint-enable global-require, import/no-extraneous-dependencies */
window.lokiFeatureFlags = {};
window.lokiSnodeAPI = {
refreshSwarmNodesForPubKey: () => [],
getFreshSwarmNodes: () => [],
updateSwarmNodes: () => {},
updateLastHash: () => {},
getSwarmNodesForPubKey: () => [],
buildNewOnionPaths: () => [],
};
window.lokiSnodeAPI = {}; // no need stub out each function here
}
if (config.environment.includes('test-integration')) {
window.lokiFeatureFlags = {

Loading…
Cancel
Save