mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Merge pull request #1057 from loki-project/neuroscr-patch-2
open group api - put integration code under guard
This commit is contained in:
commit
f632a87b05
|
@ -2,7 +2,6 @@
|
|||
const EventEmitter = require('events');
|
||||
const nodeFetch = require('node-fetch');
|
||||
const LokiAppDotNetAPI = require('./loki_app_dot_net_api');
|
||||
const StubAppDotNetAPI = require('../../integration_test/stubs/stub_app_dot_net_api.js');
|
||||
|
||||
class LokiPublicChatFactoryAPI extends EventEmitter {
|
||||
constructor(ourKey) {
|
||||
|
@ -61,6 +60,8 @@ class LokiPublicChatFactoryAPI extends EventEmitter {
|
|||
|
||||
// after verification then we can start up all the pollers
|
||||
if (process.env.USE_STUBBED_NETWORK) {
|
||||
// eslint-disable-next-line global-require
|
||||
const StubAppDotNetAPI = require('../../integration_test/stubs/stub_app_dot_net_api.js');
|
||||
thisServer = new StubAppDotNetAPI(this.ourKey, serverUrl);
|
||||
} else {
|
||||
thisServer = new LokiAppDotNetAPI(this.ourKey, serverUrl);
|
||||
|
|
Loading…
Reference in a new issue