Add backup validation to settings

This commit is contained in:
Fedor Indutny
2025-04-15 16:04:30 -07:00
committed by GitHub
parent fef6706a75
commit f68ef019a5
16 changed files with 292 additions and 34 deletions
+2
View File
@@ -47,9 +47,11 @@ installCallback('refreshCloudBackupStatus');
installCallback('refreshBackupSubscriptionStatus');
installCallback('deleteAllMyStories');
installCallback('isPrimary');
installCallback('isInternalUser');
installCallback('syncRequest');
installCallback('getEmojiSkinToneDefault');
installCallback('setEmojiSkinToneDefault');
installCallback('validateBackup');
installSetting('alwaysRelayCalls');
installSetting('audioMessage');
+4
View File
@@ -75,6 +75,7 @@ SettingsWindowProps.onRender(
isNotificationAttentionSupported,
isSyncSupported,
isSystemTraySupported,
isInternalUser,
lastSyncTime,
makeSyncRequest,
notificationContent,
@@ -128,6 +129,7 @@ SettingsWindowProps.onRender(
localeOverride,
themeSetting,
universalExpireTimer,
validateBackup,
whoCanFindMe,
whoCanSeeMe,
zoomFactor,
@@ -188,6 +190,7 @@ SettingsWindowProps.onRender(
isNotificationAttentionSupported={isNotificationAttentionSupported}
isSyncSupported={isSyncSupported}
isSystemTraySupported={isSystemTraySupported}
isInternalUser={isInternalUser}
lastSyncTime={lastSyncTime}
localeOverride={localeOverride}
makeSyncRequest={makeSyncRequest}
@@ -243,6 +246,7 @@ SettingsWindowProps.onRender(
setGlobalDefaultConversationColor={setGlobalDefaultConversationColor}
themeSetting={themeSetting}
universalExpireTimer={universalExpireTimer}
validateBackup={validateBackup}
whoCanFindMe={whoCanFindMe}
whoCanSeeMe={whoCanSeeMe}
zoomFactor={zoomFactor}
+6
View File
@@ -98,7 +98,9 @@ const ipcGetAvailableIODevices = createCallback('getAvailableIODevices');
const ipcGetCustomColors = createCallback('getCustomColors');
const ipcGetEmojiSkinToneDefault = createCallback('getEmojiSkinToneDefault');
const ipcIsSyncNotSupported = createCallback('isPrimary');
const ipcIsInternalUser = createCallback('isInternalUser');
const ipcMakeSyncRequest = createCallback('syncRequest');
const ipcValidateBackup = createCallback('validateBackup');
const ipcDeleteAllMyStories = createCallback('deleteAllMyStories');
const ipcRefreshCloudBackupStatus = createCallback('refreshCloudBackupStatus');
const ipcRefreshBackupSubscriptionStatus = createCallback(
@@ -205,6 +207,7 @@ async function renderPreferences() {
customColors,
defaultConversationColor,
isSyncNotSupported,
isInternalUser,
} = await awaitObject({
autoDownloadAttachment: settingAutoDownloadAttachment.getValue(),
backupFeatureEnabled: settingBackupFeatureEnabled.getValue(),
@@ -253,6 +256,7 @@ async function renderPreferences() {
defaultConversationColor: ipcGetDefaultConversationColor(),
emojiSkinToneDefault: ipcGetEmojiSkinToneDefault(),
isSyncNotSupported: ipcIsSyncNotSupported(),
isInternalUser: ipcIsInternalUser(),
});
const { availableCameras, availableMicrophones, availableSpeakers } =
@@ -365,6 +369,7 @@ async function renderPreferences() {
resetAllChatColors: ipcResetAllChatColors,
resetDefaultChatColor: ipcResetDefaultChatColor,
setGlobalDefaultConversationColor: ipcSetGlobalDefaultConversationColor,
validateBackup: ipcValidateBackup,
// Limited support features
isAutoDownloadUpdatesSupported: Settings.isAutoDownloadUpdatesSupported(
OS,
@@ -374,6 +379,7 @@ async function renderPreferences() {
isHideMenuBarSupported: Settings.isHideMenuBarSupported(OS),
isNotificationAttentionSupported: Settings.isDrawAttentionSupported(OS),
isSyncSupported: !isSyncNotSupported,
isInternalUser,
isSystemTraySupported: Settings.isSystemTraySupported(OS),
isMinimizeToAndStartInSystemTraySupported:
Settings.isMinimizeToAndStartInSystemTraySupported(OS),