From 44158bc843303ee371cfc377fc511ac0c4c9b254 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 27 Jan 2025 19:51:28 +0000 Subject: [PATCH] Add unspecced backup disable flag (#4661) * Add unspecced backup disable flag * Add comment --- src/@types/event.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/@types/event.ts b/src/@types/event.ts index 8815c6f90..2f4d1e950 100644 --- a/src/@types/event.ts +++ b/src/@types/event.ts @@ -374,6 +374,9 @@ export interface AccountDataEvents extends SecretStorageAccountDataEvents { [EventType.Direct]: { [userId: string]: string[] }; [EventType.IgnoredUserList]: { [userId: string]: {} }; "m.secret_storage.default_key": { key: string }; + // Flag set by the rust SDK (Element X) and also used by us to mark that the user opted out of backup + // (I don't know why it's m.org.matrix...) + "m.org.matrix.custom.backup_disabled": { disabled: boolean }; "m.identity_server": { base_url: string | null }; [key: `${typeof LOCAL_NOTIFICATION_SETTINGS_PREFIX.name}.${string}`]: LocalNotificationSettings; [key: `m.secret_storage.key.${string}`]: SecretStorageKeyDescription;