mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Add backup validation to settings
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user