Skip to content

Commit c0dc8ce

Browse files
committed
Fix SignedPreKeyRecord NSSecureCoding conformance
1 parent 43761fd commit c0dc8ce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

SignalServiceKit/Storage/AxolotlStore/Model/PreKeyRecord.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ private let kCoderCreatedAt = "kCoderCreatedAt"
99

1010
@objc(PreKeyRecord)
1111
public class PreKeyRecord: NSObject, NSSecureCoding {
12-
public static let supportsSecureCoding: Bool = true
12+
public class var supportsSecureCoding: Bool { true }
1313

1414
public let id: Int32
1515
public let keyPair: ECKeyPair

SignalServiceKit/Storage/AxolotlStore/Model/SignedPreKeyRecord.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ private let kCoderPreKeySignature = "kCoderPreKeySignature"
1010

1111
@objc(SignedPreKeyRecord)
1212
public class SignedPreKeyRecord: PreKeyRecord {
13+
public class override var supportsSecureCoding: Bool { true }
14+
1315
public let signature: Data
1416
public let generatedAt: Date
1517

0 commit comments

Comments
 (0)