From 5757847f4c68778378c978ba3bf04eb5c9dceef8 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Dec 2023 16:40:13 +0200 Subject: If no nickname, print IPFS CIDv0 of GPG key found in block --- src/js/arching-kaos-tools.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/arching-kaos-tools.js b/src/js/arching-kaos-tools.js index a531290..db5276c 100644 --- a/src/js/arching-kaos-tools.js +++ b/src/js/arching-kaos-tools.js @@ -248,11 +248,14 @@ function seekblock(blockIPFSHash,zblockIPFSHash,zchainIPNSLink,zblockObject){ function getNicknameAssossiatedWithGPG(gpgIPFSHash){ for (let i in participants){ if ( participants[i].gpg === gpgIPFSHash ){ - if (participants[i].profile.nickname){ + if (participants[i].profile.nickname !== 'undefined'){ return participants[i].profile.nickname; + } else { + return gpgIPFSHash; } } } + return gpgIPFSHash; } function getConfiguration(akidIPNSLink,stellarAddress){ -- cgit v1.2.3