client/packages/chat/src/values.ts
Alois 930663d495
Some checks failed
/ build-desktop (linux) (push) Failing after 3m58s
/ build-web (push) Failing after 4m13s
/ build-mobile (push) Failing after 6m34s
/ release (push) Has been skipped
(feat): migrate ttp to mtp
(wip): crypto migration
2026-07-05 01:43:06 +02:00

15 lines
399 B
TypeScript

import { z } from "zod";
import { mtp } from "@tensamin/shared/data";
export type RawMessages = z.infer<typeof mtp.MessagesGet.response>["Messages"];
export type RawMessage = RawMessages[number];
export type LiveMessage = RawMessage & {
failed?: boolean;
localId: string;
};
export const PAGE_SIZE = 30;
export const FALLBACK_MESSAGE_HEIGHT = 28;
export const MESSAGES_PER_VIRTUAL_ROW = 30;