aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-03-04 17:03:23 +0100
committerChristian Schneppe <christian@pix-art.de>2017-03-04 17:03:23 +0100
commit947ea4269f29186c0c3ecf85c9a2102ba3272a34 (patch)
treeef2371f7ac23db0571a73c3157df2fceea8e168f /src/main/java/de/pixart/messenger/ui
parent789db8f038362efffb25eee8ae3cbb4791673430 (diff)
show 'show inactive keys' button also when there are no active keys
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
index b8b67d969..de633ad17 100644
--- a/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ContactDetailsActivity.java
@@ -571,6 +571,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;
@@ -581,7 +582,6 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
}
if (!trust.isCompromised()) {
boolean highlight = session.getFingerprint().equals(messageFingerprint);
- hasKeys = true;
addFingerprintRow(keys, session, highlight);
}
}