Skip to content

Commit

Permalink
Merge pull request #486 from martenrebane/MOPPIOS-1399
Browse files Browse the repository at this point in the history
Fix opening PDF documents
  • Loading branch information
Counter178 authored Apr 25, 2024
2 parents 88b3c9d + bae8cae commit 8a5f2dc
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 8a5f2dc

Please sign in to comment.