#89 OpenPGP better labeling

This commit is contained in:
the-djmaze 2022-01-31 12:34:41 +01:00
parent 70c55a60be
commit 949005eda7
3 changed files with 2 additions and 4 deletions

View file

@ -51,7 +51,7 @@ class OpenPgpKeyModel {
if (key.users) {
key.users.forEach(user => user.userID.email && aEmails.push(user.userID.email));
}
this.id = key.getKeyID().toHex();
this.id = key.getKeyID().toHex().toUpperCase();
this.fingerprint = key.getFingerprint();
this.can_encrypt = !!key.getEncryptionKey();
this.can_sign = !!key.getSigningKey();

View file

@ -729,8 +729,6 @@ export class MailMessageView extends AbstractViewRight {
const publicKey = OpenPGPUserStore.getPublicKeyFor(sender);
OpenPGPUserStore.verify(message.plain(), null/*detachedSignature*/, publicKey).then(result => {
if (result) {
// TODO: if result.data is not cleartext then
// parse mime to find and verify signature
message.plain(result.data);
message.viewPlain();
console.dir({signatures:result.signatures});

View file

@ -40,7 +40,7 @@
<div data-bind="component: {
name: 'Checkbox',
params: {
label: 'Store public key on server',
label: 'Backup public key on server',
value: backupPublicKey
}
}"></div>