mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-08-20 05:09:35 +01:00
Allow missing custom color during backup export
This commit is contained in:
@@ -3962,9 +3962,14 @@ export class BackupExportStream extends Readable {
|
||||
);
|
||||
|
||||
const index = this.#customColorIdByUuid.get(customColorId);
|
||||
strictAssert(index != null, 'Missing custom color');
|
||||
|
||||
bubbleColor = { customColorId: index };
|
||||
if (index != null) {
|
||||
bubbleColor = { customColorId: index };
|
||||
} else {
|
||||
log.warn(
|
||||
`toChatStyle: chat style referenced unknown custom color ${customColorId}`
|
||||
);
|
||||
bubbleColor = { autoBubbleColor: {} };
|
||||
}
|
||||
} else {
|
||||
const { BubbleColorPreset } = Backups.ChatStyle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user