Allow missing custom color during backup export

This commit is contained in:
trevor-signal
2026-08-11 13:19:10 -07:00
committed by GitHub
parent 5f4831e4ef
commit 7ae2b7343e
+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;