Show dialog for permanently undownloadable attachments

This commit is contained in:
ayumi-signal
2025-02-11 13:47:54 -08:00
committed by GitHub
parent 9859383b1d
commit c235cdf58b
32 changed files with 734 additions and 55 deletions

View File

@@ -21,6 +21,7 @@ import { ConfirmationDialog } from './ConfirmationDialog';
import { SignalConnectionsModal } from './SignalConnectionsModal';
import { WhatsNewModal } from './WhatsNewModal';
import type { StartCallData } from './ConfirmLeaveCallModal';
import type { AttachmentNotAvailableModalType } from './AttachmentNotAvailableModal';
// NOTE: All types should be required for this component so that the smart
// component gives you type errors when adding/removing props.
@@ -30,6 +31,9 @@ export type PropsType = {
// AddUserToAnotherGroupModal
addUserToAnotherGroupModalContactId: string | undefined;
renderAddUserToAnotherGroup: () => JSX.Element;
// AttachmentNotAvailableModal
attachmentNotAvailableModalType: AttachmentNotAvailableModalType | undefined;
renderAttachmentNotAvailableModal: () => JSX.Element;
// CallLinkAddNameModal
callLinkAddNameModalRoomId: string | null;
renderCallLinkAddNameModal: () => JSX.Element;
@@ -116,6 +120,9 @@ export type PropsType = {
export function GlobalModalContainer({
i18n,
// AttachmentNotAvailableModal
attachmentNotAvailableModalType,
renderAttachmentNotAvailableModal,
// AddUserToAnotherGroupModal
addUserToAnotherGroupModalContactId,
renderAddUserToAnotherGroup,
@@ -327,5 +334,9 @@ export function GlobalModalContainer({
);
}
if (attachmentNotAvailableModalType) {
return renderAttachmentNotAvailableModal();
}
return null;
}