From bae8cae1d9810947e06d907bb661e2e153c9596c Mon Sep 17 00:00:00 2001 From: Marten Rebane <54431068+martenrebane@users.noreply.github.com> Date: Thu, 25 Apr 2024 00:13:40 +0300 Subject: [PATCH] Fix opening PDF documents --- MoppApp/MoppApp/ContainerActions.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MoppApp/MoppApp/ContainerActions.swift b/MoppApp/MoppApp/ContainerActions.swift index 45916756a..5b5c25b86 100644 --- a/MoppApp/MoppApp/ContainerActions.swift +++ b/MoppApp/MoppApp/ContainerActions.swift @@ -77,8 +77,9 @@ extension ContainerActions where Self: UIViewController { landingViewController.containerType = .asic } } - let isAsicOrPadesContainer = (ext.isAsicContainerExtension || ext == ContainerFormatPDF) && - landingViewController.containerType == .asic + let isAsicOrPadesContainer = (ext.isAsicContainerExtension || + (ext == ContainerFormatPDF && + SiVaUtil.isSignedPDF(url: urls.first! as CFURL))) && landingViewController.containerType == .asic let isCdocContainer = ext.isCdocContainerExtension && landingViewController.containerType == .cdoc if (isAsicOrPadesContainer || isCdocContainer) && urls.count == 1 { SiVaUtil.setIsSentToSiva(isSent: false)