Skip to content

Commit f49adfe

Browse files
Merge pull request #1139 from ChatSecure/bugfix/issue-1135
Fix issue where profile fingerprint trust values cannot be updated
2 parents 4630c53 + a49ab2b commit f49adfe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ChatSecure/Classes/View Controllers/KeyManagementViewController.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,3 +480,23 @@ open class KeyManagementViewController: XLFormViewController {
480480
}
481481

482482
}
483+
484+
extension OMEMODevice: XLFormOptionObject {
485+
public func formDisplayText() -> String {
486+
return humanReadableFingerprint
487+
}
488+
489+
public func formValue() -> Any {
490+
return self
491+
}
492+
}
493+
494+
extension OTRFingerprint: XLFormOptionObject {
495+
public func formDisplayText() -> String {
496+
return (fingerprint as NSData).humanReadableFingerprint()
497+
}
498+
499+
public func formValue() -> Any {
500+
return self
501+
}
502+
}

0 commit comments

Comments
 (0)