From ecd53580c05ecb2c7c0507603a834b8392389165 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 1 Mar 2017 12:50:46 +0100 Subject: [PATCH] show 'show inactive keys' button also when there are no active keys --- .../java/eu/siacs/conversations/ui/ContactDetailsActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java index 1b76173a..ad467506 100644 --- a/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ContactDetailsActivity.java @@ -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); } }