Skip to content

Commit

Permalink
Fixed issue zom#578: Fixed latest code first. (OMEMO only, no timesta…
Browse files Browse the repository at this point in the history
…mp available on OTR keys.)
  • Loading branch information
tladesignz committed Apr 12, 2018
1 parent 94f81bc commit 7da11c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ class ZomFingerprintBaseViewController: UIViewController {
.filter() { (device) -> Bool in
return device.publicIdentityKeyData != nil && device.trustLevel != .removed
}
.sorted(by: { (device1, device2) -> Bool in
return device1.lastSeenDate.compare(device2.lastSeenDate) == .orderedDescending
})

if let account = buddy.account(with: transaction) {
self.otrFingerprints = OTRProtocolManager.encryptionManager.otrKit.fingerprints(
Expand Down Expand Up @@ -165,7 +168,7 @@ class ZomFingerprintBaseViewController: UIViewController {
}

/**
- returns: the buddy' `displayName` or "your buddy" as a default value, if no buddy or no
- returns: the buddy's `displayName` or "your buddy" as a default value, if no buddy or no
`displayName`.
*/
func buddyName() -> String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class ZomVerificationDetailViewController: ZomFingerprintBaseViewController, UIT
super.viewDidLoad()

if let titleView = navigationItem.titleView as? OTRTitleSubtitleView {
titleView.titleLabel.text = NSLocalizedString("Zom Codes",
comment: "Title for code verification detail scene")
titleView.titleLabel.text = NSLocalizedString("Zom Codes", comment:
"Title for code verification detail scene")
}

descriptionLb.text = NSLocalizedString("Make sure the codes match your friend's latest Zom codes on his or her phone.",
Expand Down

0 comments on commit 7da11c3

Please sign in to comment.