Remove window.Signal.Services.storage

This commit is contained in:
Fedor Indutny
2025-10-09 15:09:47 -07:00
committed by GitHub
parent bcac163e73
commit 290d2f3b4b
2 changed files with 4 additions and 4 deletions

View File

@@ -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,
});
},

5
ts/window.d.ts vendored
View File

@@ -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;