Send proof hint flags for media messages

This commit is contained in:
N-Pex 2025-08-25 14:47:12 +02:00
parent f1b9de48d1
commit a667f28984
3 changed files with 16 additions and 4 deletions

View file

@ -627,7 +627,8 @@ export const createUploadBatch = (manager: AttachmentManager | null, room: Room
},
eventId,
attachment.dimensions,
attachment.thumbnail
attachment.thumbnail,
attachment.proofHintFlags
)
.then((mediaEventId: string) => {
// Look at last item rotation, flipping the sign on this, so looks more like a true stack

View file

@ -67,6 +67,8 @@ export type ProofHintFlags = {
export const extractProofHintFlags = (proof?: Proof): (ProofHintFlags | undefined) => {
if (!proof) return undefined;
let foundCreated = false;
let screenshot = false;
let camera = false;
let aiGenerated = false;
@ -104,10 +106,14 @@ export const extractProofHintFlags = (proof?: Proof): (ProofHintFlags | undefine
) {
aiGenerated = true;
}
return;
foundCreated = true;
break;
}
}
}
if (foundCreated) {
break;
}
}
if (valid) {
const flags: ProofHintFlags = {