Add OS auth to local backup key viewer

This commit is contained in:
ayumi-signal 2025-06-16 16:38:53 -07:00 committed by GitHub
commit 37422e41f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1070 additions and 12 deletions

View file

@ -85,6 +85,10 @@ import type { MessageCountBySchemaVersionType } from '../sql/Interface';
import type { MessageAttributesType } from '../model-types';
import { isBackupPage } from '../types/PreferencesBackupPage';
import type { PreferencesBackupPage } from '../types/PreferencesBackupPage';
import type {
PromptOSAuthReasonType,
PromptOSAuthResultType,
} from '../util/os/promptOSAuthMain';
type CheckboxChangeHandlerType = (value: boolean) => unknown;
type SelectChangeHandlerType<T = string | number> = (value: T) => unknown;
@ -210,6 +214,9 @@ type PropsFunctionType = {
refreshBackupSubscriptionStatus: () => void;
removeCustomColor: (colorId: string) => unknown;
removeCustomColorOnConversations: (colorId: string) => unknown;
promptOSAuth: (
reason: PromptOSAuthReasonType
) => Promise<PromptOSAuthResultType>;
resetAllChatColors: () => unknown;
resetDefaultChatColor: () => unknown;
savePreferredLeftPaneWidth: (_: number) => void;
@ -445,6 +452,7 @@ export function Preferences({
renderProfileEditor,
renderToastManager,
renderUpdateDialog,
promptOSAuth,
resetAllChatColors,
resetDefaultChatColor,
resolvedLocale,
@ -1999,6 +2007,7 @@ export function Preferences({
onBackupKeyViewedChange={onBackupKeyViewedChange}
pickLocalBackupFolder={pickLocalBackupFolder}
page={page}
promptOSAuth={promptOSAuth}
setPage={setPage}
showToast={showToast}
/>