Import/export chat styles

This commit is contained in:
Fedor Indutny
2024-07-15 13:58:55 -07:00
committed by GitHub
parent 6fb76e00c4
commit 8f2061e11d
15 changed files with 663 additions and 47 deletions

View File

@@ -170,12 +170,14 @@ export type ConversationColorType =
| typeof ConversationColors[number]
| 'custom';
export type CustomColorDataType = {
id: string;
value: CustomColorType;
};
export type DefaultConversationColorType = {
color: ConversationColorType;
customColorData?: {
id: string;
value: CustomColorType;
};
customColorData?: CustomColorDataType;
};
export const DEFAULT_CONVERSATION_COLOR: DefaultConversationColorType = {

View File

@@ -64,6 +64,11 @@ export type StorageAccessType = {
attachmentMigration_lastProcessedIndex: number;
blocked: ReadonlyArray<string>;
defaultConversationColor: DefaultConversationColorType;
// Not used UI, stored as is when imported from backup.
defaultWallpaperPhotoPointer: Uint8Array;
defaultWallpaperPreset: number;
customColors: CustomColorsItemType;
device_name: string;
existingOnboardingStoryMessageIds: ReadonlyArray<string> | undefined;