Skip to content
Snippets Groups Projects
Commit 352214a4 authored by cruxfilm's avatar cruxfilm
Browse files

Fixed merge conflict in IncomingMail, adapted Enum formatting to Google style guide.

parent 2537a508
Branches
No related tags found
1 merge request!74Integration of new ComposeView
......@@ -9,7 +9,11 @@
import Foundation
enum PGPPart {
case MESSAGE, PUBLICKEY, SIGNATURE, SECRETKEY, SIGNEDMESSAGE;
case MESSAGE
case PUBLICKEY
case SIGNATURE
case SECRETKEY
case SIGNEDMESSAGE
var start: String {
get {
......@@ -90,7 +94,10 @@ enum PGPPart {
}
enum PgpMIMEType {
case SIGNATURE, ENCRYPTED, OCTET, KEYS;
case SIGNATURE
case ENCRYPTED
case OCTET
case KEYS
static let allValues = [PgpMIMEType.ENCRYPTED, PgpMIMEType.KEYS, PgpMIMEType.OCTET, PgpMIMEType.SIGNATURE]
......@@ -148,10 +155,8 @@ class IncomingMail {
keyIds.append(contentsOf: newPublicKeys)
if let fromAdr = from?.mailbox{
if let adr = PersistentDataProvider.dataProvider.generateFetchedAddressResultsController(address: fromAdr).fetchedObjects?.first {
for k in adr.publicKeys {
if let id = k.fingerprint {
keyIds.append(id)
}
for id in adr.keyIDs {
keyIds.append(id)
}
}
}
......@@ -204,6 +209,7 @@ class IncomingMail {
return msgParser.data()
}
}
var decryptionKeyIDs: [String] {
get {
let secretkeys = PersistentDataProvider.dataProvider.fetchedSecretKeyResultsController.fetchedObjects ?? []
......@@ -238,7 +244,6 @@ class IncomingMail {
}
}
init(rawData: Data, uID: UInt64, folderPath: String, flags: MCOMessageFlag){
self.rawData = rawData
self.uID = uID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment