Improved Lightbox experience

This commit is contained in:
Josh Perez 2021-08-23 19:14:53 -04:00 committed by GitHub
parent d80e738fb1
commit d5d808651a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 1054 additions and 966 deletions

25
ts/types/MediaItem.ts Normal file
View file

@ -0,0 +1,25 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { AttachmentType } from './Attachment';
import { MIMEType } from './MIME';
export type MessageAttributesType = {
attachments: Array<AttachmentType>;
conversationId: string;
id: string;
// eslint-disable-next-line camelcase
received_at: number;
// eslint-disable-next-line camelcase
received_at_ms: number;
};
export type MediaItemType = {
attachment: AttachmentType;
contentType?: MIMEType;
index: number;
loop?: boolean;
message: MessageAttributesType;
objectURL?: string;
thumbnailObjectUrl?: string;
};