check if axolotl service is initialized before displaying keys
This commit is contained in:
parent
57176b4a99
commit
b63525da9f
1 changed files with 3 additions and 2 deletions
|
@ -586,10 +586,11 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
|
|||
});
|
||||
}
|
||||
}
|
||||
if (Config.supportOmemo()) {
|
||||
final AxolotlService axolotlService = contact.getAccount().getAxolotlService();
|
||||
if (Config.supportOmemo() && axolotlService != null) {
|
||||
boolean skippedInactive = false;
|
||||
boolean showsInactive = false;
|
||||
for (final XmppAxolotlSession session : contact.getAccount().getAxolotlService().findSessionsForContact(contact)) {
|
||||
for (final XmppAxolotlSession session : axolotlService.findSessionsForContact(contact)) {
|
||||
final FingerprintStatus trust = session.getTrust();
|
||||
hasKeys |= !trust.isCompromised();
|
||||
if (!trust.isActive()) {
|
||||
|
|
Reference in a new issue