Skip to content
Snippets Groups Projects
Commit b071a557 authored by blauren95's avatar blauren95
Browse files

#265: fix critical errors

parent 8c7f9a6b
No related branches found
No related tags found
3 merge requests!58Onboarding screens swift ui merge dev,!55WIP: Resolve "UI for gamifcation & stats",!52Resolve "Try to verify later / Update CoreData"
...@@ -116,11 +116,13 @@ class OutgoingMail { ...@@ -116,11 +116,13 @@ class OutgoingMail {
self.sendEncryptedIfPossible = sendEncryptedIfPossible self.sendEncryptedIfPossible = sendEncryptedIfPossible
self.attachments = attachments self.attachments = attachments
self.orderReceivers() self.orderReceivers()
let signature = OutgoingMail.extractPGPSignature(attachment: attachments.first!) if let attachment = attachments.first {
guard let SignatureData = signature.first?.data(using: .utf8) else { let signature = OutgoingMail.extractPGPSignature(attachment: attachment)
return if let signatureData = signature.first?.data(using: .utf8) {
self.attachedSignature = signatureData
}
} }
self.attachedSignature = SignatureData
} }
init(mail: PersistentMail){ init(mail: PersistentMail){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment