show 'show inactive keys' button also when there are no active keys

This commit is contained in:
Daniel Gultsch 2017-03-01 12:50:46 +01:00
parent 23a91e5019
commit ecd53580c0
1 changed files with 1 additions and 1 deletions

View File

@ -468,6 +468,7 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
boolean showsInactive = false;
for (final XmppAxolotlSession session : contact.getAccount().getAxolotlService().findSessionsForContact(contact)) {
final FingerprintStatus trust = session.getTrust();
hasKeys |= !trust.isCompromised();
if (!trust.isActive()) {
if (showInactiveOmemo) {
showsInactive = true;
@ -478,7 +479,6 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
}
if (!trust.isCompromised()) {
boolean highlight = session.getFingerprint().equals(messageFingerprint);
hasKeys = true;
addFingerprintRow(keys, session, highlight);
}
}