Support for running proof check on client side

This commit is contained in:
N-Pex 2025-09-05 13:48:52 +02:00
parent 66eef037e0
commit 46479d4c37
6 changed files with 126 additions and 29 deletions

View file

@ -1,5 +1,6 @@
import { MatrixEvent, Room } from "matrix-js-sdk";
import { AttachmentBatch } from "./attachment";
import { Proof, ProofHintFlags } from "./proof";
export type KeanuEventExtension = {
isMxThread?: boolean;
@ -26,6 +27,8 @@ export type EventAttachment = {
thumbnailProgress: number;
thumbnailPromise?: Promise<EventAttachmentUrlData>;
autoDownloadable: boolean;
proof?: Proof;
proofHintFlags?: ProofHintFlags;
loadSrc: () => Promise<EventAttachmentUrlData>;
loadThumbnail: () => Promise<EventAttachmentUrlData>;
loadBlob: () => Promise<{data: Blob}>;