Multi-select forwarding and deleting

This commit is contained in:
Jamie Kyle 2023-03-20 15:23:53 -07:00 committed by GitHub
parent d986356eea
commit 1d549a9991
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
82 changed files with 2607 additions and 991 deletions

View file

@ -34,7 +34,7 @@ export type PropsType = {
media: ReadonlyArray<ReadonlyDeep<MediaItemType>>;
saveAttachment: SaveAttachmentActionCreatorType;
selectedIndex: number;
toggleForwardMessageModal: (messageId: string) => unknown;
toggleForwardMessagesModal: (messageIds: ReadonlyArray<string>) => unknown;
onMediaPlaybackStart: () => void;
onNextAttachment: () => void;
onPrevAttachment: () => void;
@ -77,7 +77,7 @@ export function Lightbox({
isViewOnce = false,
saveAttachment,
selectedIndex,
toggleForwardMessageModal,
toggleForwardMessagesModal,
onMediaPlaybackStart,
onNextAttachment,
onPrevAttachment,
@ -186,7 +186,7 @@ export function Lightbox({
closeLightbox();
const mediaItem = media[selectedIndex];
toggleForwardMessageModal(mediaItem.message.id);
toggleForwardMessagesModal([mediaItem.message.id]);
};
const onKeyDown = useCallback(