Support video thumbnails

This commit is contained in:
N-Pex 2025-07-10 09:46:07 +02:00
parent 4e755ace36
commit 035069f505
4 changed files with 124 additions and 18 deletions

View file

@ -41,6 +41,14 @@ export type AttachmentSendInfo = {
randomTranslationY: number; // For UI effects
};
export type AttachmentThumbnail = {
data: Uint8Array;
mimetype: string;
size: number;
w: number;
h: number;
}
export type Attachment = {
status: "loading" | "loaded";
file: File;
@ -51,6 +59,7 @@ export type Attachment = {
src?: string;
proof?: Proof;
sendInfo?: AttachmentSendInfo;
thumbnail?: AttachmentThumbnail;
};
export type AttachmentBatch = {