Allow missing custom color during backup export

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2026-08-11 20:31:29 +00:00
committed by GitHub
co-authored by trevor-signal
parent 3111d79f3d
commit 8a7a14a5bd
+8 -3
View File
@@ -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;