mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-15 07:28:59 +00:00
Bind remote config to libsignal-net
This commit is contained in:
@@ -14,12 +14,13 @@ import chaiAsPromised from 'chai-as-promised';
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { reporters, type MochaOptions } from 'mocha';
|
||||
|
||||
import { initMessageCleanup } from '../../services/messageStateCleanup.preload.js';
|
||||
import { initializeMessageCounter } from '../../util/incrementMessageCounter.preload.js';
|
||||
import { initializeRedux } from '../../state/initializeRedux.preload.js';
|
||||
import * as Stickers from '../../types/Stickers.preload.js';
|
||||
import { ThemeType } from '../../types/Util.std.js';
|
||||
import { itemStorage } from '../../textsecure/Storage.preload.js';
|
||||
import { MessageCache } from '../../services/MessageCache.preload.js';
|
||||
import { updateRemoteConfig } from '../../test-helpers/RemoteConfigStub.dom.js';
|
||||
|
||||
chai.use(chaiAsPromised);
|
||||
|
||||
@@ -95,7 +96,10 @@ window.testUtilities = {
|
||||
},
|
||||
|
||||
async initialize() {
|
||||
initMessageCleanup();
|
||||
// Since background.preload.ts is not loaded in tests, we need to do some minimal
|
||||
// setup
|
||||
MessageCache.install();
|
||||
await updateRemoteConfig([]);
|
||||
await initializeMessageCounter();
|
||||
await Stickers.load();
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ import type {
|
||||
import { cdsLookup, getSocketStatus } from '../../textsecure/WebAPI.preload.js';
|
||||
import type { FeatureFlagType } from '../../window.d.ts';
|
||||
import type { StorageAccessType } from '../../types/Storage.d.ts';
|
||||
import { initMessageCleanup } from '../../services/messageStateCleanup.preload.js';
|
||||
import { calling } from '../../services/calling.preload.js';
|
||||
import { Environment, getEnvironment } from '../../environment.std.js';
|
||||
import { isProduction } from '../../util/version.std.js';
|
||||
@@ -57,8 +56,6 @@ if (window.SignalContext.config.proxyUrl) {
|
||||
log.info('Using provided proxy url');
|
||||
}
|
||||
|
||||
initMessageCleanup();
|
||||
|
||||
if (
|
||||
!isProduction(window.SignalContext.getVersion()) ||
|
||||
window.SignalContext.config.devTools
|
||||
|
||||
Reference in New Issue
Block a user