mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 20:03:25 +01:00
More backup export improvements
This commit is contained in:
@@ -877,19 +877,15 @@ const bodyRangeOffsetSchema = z.number().int().min(0);
|
||||
const bodyRangeStyleSchema = z.nativeEnum(signalservice.BodyRange.Style);
|
||||
|
||||
export const bodyRangeSchema = z.union([
|
||||
z
|
||||
.object({
|
||||
start: bodyRangeOffsetSchema,
|
||||
length: bodyRangeOffsetSchema,
|
||||
mentionAci: aciSchema,
|
||||
})
|
||||
.strict(),
|
||||
z
|
||||
.object({
|
||||
start: bodyRangeOffsetSchema,
|
||||
length: bodyRangeOffsetSchema,
|
||||
style: bodyRangeStyleSchema,
|
||||
spoilerId: z.number().optional(),
|
||||
})
|
||||
.strict(),
|
||||
z.object({
|
||||
start: bodyRangeOffsetSchema,
|
||||
length: bodyRangeOffsetSchema,
|
||||
mentionAci: aciSchema,
|
||||
}),
|
||||
z.object({
|
||||
start: bodyRangeOffsetSchema,
|
||||
length: bodyRangeOffsetSchema,
|
||||
style: bodyRangeStyleSchema,
|
||||
spoilerId: z.number().optional(),
|
||||
}),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user