mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-21 17:08:11 +01:00
Refactor backup subscription UI
This commit is contained in:
2
ts/types/Storage.d.ts
vendored
2
ts/types/Storage.d.ts
vendored
@@ -232,7 +232,7 @@ export type StorageAccessType = {
|
||||
|
||||
backupTier: number | undefined;
|
||||
cloudBackupStatus: BackupStatusType | undefined;
|
||||
backupSubscriptionStatus: BackupsSubscriptionType;
|
||||
backupSubscriptionStatus: BackupsSubscriptionType | undefined;
|
||||
|
||||
backupKeyViewed: boolean;
|
||||
localBackupFolder: string | undefined;
|
||||
|
||||
@@ -47,13 +47,9 @@ export type BackupMediaDownloadStatusType = {
|
||||
isIdle: boolean;
|
||||
};
|
||||
|
||||
export type BackupsSubscriptionType =
|
||||
export type BackupsSubscriptionType = (
|
||||
| {
|
||||
status: 'off' | 'not-found' | 'expired';
|
||||
}
|
||||
| {
|
||||
status: 'free';
|
||||
mediaIncludedInBackupDurationDays: number;
|
||||
status: 'not-found' | 'expired';
|
||||
}
|
||||
| (
|
||||
| {
|
||||
@@ -66,7 +62,8 @@ export type BackupsSubscriptionType =
|
||||
expiryTimestamp?: number;
|
||||
cost?: SubscriptionCostType;
|
||||
}
|
||||
);
|
||||
)
|
||||
) & { lastFetchedAtMs?: number; isFetching?: boolean };
|
||||
|
||||
export type LocalBackupMetadataVerificationType = {
|
||||
snapshotDir: string;
|
||||
|
||||
Reference in New Issue
Block a user