diff --git a/ts/state/ducks/notificationProfiles.ts b/ts/state/ducks/notificationProfiles.ts index fda65fe720..d133d34d4c 100644 --- a/ts/state/ducks/notificationProfiles.ts +++ b/ts/state/ducks/notificationProfiles.ts @@ -28,6 +28,7 @@ import { prepareForDisabledNotificationProfileSync, prepareForEnabledNotificationProfileSync, } from '../../services/storageRecordOps.js'; +import { storageServiceUploadJob } from '../../services/storage.js'; import { SECOND } from '../../util/durations/constants.js'; import type { @@ -155,7 +156,7 @@ const updateStorageService = debounce( return; } - window.Signal.Services.storage.storageServiceUploadJob({ + storageServiceUploadJob({ reason, }); }, diff --git a/ts/window.d.ts b/ts/window.d.ts index 699de8e796..052e4dfaf6 100644 --- a/ts/window.d.ts +++ b/ts/window.d.ts @@ -24,7 +24,6 @@ import type { import type { Receipt } from './types/Receipt.js'; import type { ConversationController } from './ConversationController.js'; import type { ReduxActions } from './state/types.js'; -import type * as StorageService from './services/storage.js'; import type { BatcherType } from './util/batcher.js'; import type { ScreenShareStatus } from './types/Calling.js'; import type { MessageCache } from './services/MessageCache.js'; @@ -133,9 +132,9 @@ export type SignalCoreType = { DebugLogWindowProps?: DebugLogWindowPropsType; PermissionsWindowProps?: PermissionsWindowPropsType; ScreenShareWindowProps?: ScreenShareWindowPropsType; + // Only for development Services: { - storage: typeof StorageService; - // Only for development + storage: unknown; backups: unknown; calling: unknown; donations: unknown;