Place CR icon correctly on (scaled) image

Also, show "red dot" only if details not viewed already.
This commit is contained in:
N-Pex 2025-11-03 09:16:48 +01:00
parent 28865658d2
commit c66602deb7
7 changed files with 74 additions and 37 deletions

View file

@ -58,6 +58,7 @@ export class AttachmentManager {
status: "loading",
file: file,
useCompressed: false,
detailsViewed: false,
sendInfo: {
status: "initial",
statusDate: 0,
@ -438,7 +439,7 @@ export class AttachmentManager {
}
}
export const createUploadBatch = (manager: AttachmentManager | null, room: Room | null): AttachmentBatch => {
export const createUploadBatch = (manager: AttachmentManager | null, room: KeanuRoom | null): AttachmentBatch => {
const matrixClient = manager?.matrixClient;
const maxSizeUploads = manager?.maxSizeUploads ?? 0;