Send proof hint flags for media messages
This commit is contained in:
parent
f1b9de48d1
commit
a667f28984
3 changed files with 16 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue