Hide revoked userids

This commit is contained in:
Yarmo Mackenbach 2020-07-11 20:04:22 +02:00
parent f028a2a943
commit 36ec8cb539

View file

@ -258,7 +258,7 @@ async function displayProfile(opts) {
feedback += `<div class="profileDataItem__value">general information</div>`; feedback += `<div class="profileDataItem__value">general information</div>`;
feedback += `</div>`; feedback += `</div>`;
for (var i = 0; i < keyData.publicKey.users.length; i++) { for (var i = 0; i < keyData.publicKey.users.length; i++) {
if (keyData.publicKey.users[i].userId && 'email' in keyData.publicKey.users[i].userId && keyData.publicKey.users[i].userId.email) { if (keyData.publicKey.users[i].userId && 'email' in keyData.publicKey.users[i].userId && keyData.publicKey.users[i].userId.email && keyData.publicKey.users[i].revocationSignatures.length == 0) {
feedback += `<div class="profileDataItem">`; feedback += `<div class="profileDataItem">`;
feedback += `<div class="profileDataItem__label">email</div>`; feedback += `<div class="profileDataItem__label">email</div>`;
feedback += `<div class="profileDataItem__value"><a href="mailto:${keyData.publicKey.users[i].userId.email}">${keyData.publicKey.users[i].userId.email}</a></div>`; feedback += `<div class="profileDataItem__value"><a href="mailto:${keyData.publicKey.users[i].userId.email}">${keyData.publicKey.users[i].userId.email}</a></div>`;