From 3ddc53e683b9cdacff7184f3aa805b431edebcdb Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 14 Aug 2017 13:48:43 +0200 Subject: openpgp: contact details provider (fingerprint), colored fingerprints, fix shown availability --- plugins/openpgp/src/encryption_list_entry.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/openpgp/src/encryption_list_entry.vala') diff --git a/plugins/openpgp/src/encryption_list_entry.vala b/plugins/openpgp/src/encryption_list_entry.vala index 9aac3db2..584e065b 100644 --- a/plugins/openpgp/src/encryption_list_entry.vala +++ b/plugins/openpgp/src/encryption_list_entry.vala @@ -19,8 +19,9 @@ private class EncryptionListEntry : Plugins.EncryptionListEntry, Object { }} public bool can_encrypt(Entities.Conversation conversation) { - return stream_interactor.get_module(Manager.IDENTITY).get_key_id(conversation.account, conversation.counterpart) != null; + string? key_id = stream_interactor.get_module(Manager.IDENTITY).get_key_id(conversation.account, conversation.counterpart); + return key_id != null && GPGHelper.get_keylist(key_id).size > 0; } } -} \ No newline at end of file +} -- cgit v1.2.3-54-g00ecf