Skip to content

Commit

Permalink
Fix opening PDF documents
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrebane committed Apr 24, 2024
1 parent 88b3c9d commit bae8cae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions MoppApp/MoppApp/ContainerActions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bae8cae

Please sign in to comment.