Place CR icon correctly on (scaled) image
Also, show "red dot" only if details not viewed already.
This commit is contained in:
parent
28865658d2
commit
c66602deb7
7 changed files with 74 additions and 37 deletions
|
|
@ -60,6 +60,7 @@ export type Attachment = {
|
|||
proof?: Proof;
|
||||
mediaMetadata?: MediaMetadata;
|
||||
thumbnail?: AttachmentThumbnail;
|
||||
detailsViewed: boolean;
|
||||
sendInfo: AttachmentSendInfo;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue