Skip to content

Commit

Permalink
Merge pull request #1139 from ChatSecure/bugfix/issue-1135
Browse files Browse the repository at this point in the history
Fix issue where profile fingerprint trust values cannot be updated
  • Loading branch information
chrisballinger authored Aug 1, 2019
2 parents 4630c53 + a49ab2b commit f49adfe
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,3 +480,23 @@ open class KeyManagementViewController: XLFormViewController {
}

}

extension OMEMODevice: XLFormOptionObject {
public func formDisplayText() -> String {
return humanReadableFingerprint
}

public func formValue() -> Any {
return self
}
}

extension OTRFingerprint: XLFormOptionObject {
public func formDisplayText() -> String {
return (fingerprint as NSData).humanReadableFingerprint()
}

public func formValue() -> Any {
return self
}
}

0 comments on commit f49adfe

Please sign in to comment.