diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2023-12-27 16:40:13 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2023-12-27 16:40:13 +0200 |
commit | 5757847f4c68778378c978ba3bf04eb5c9dceef8 (patch) | |
tree | 365475afd07eab59e6ac2191744c0212addefde3 | |
parent | 3d9ea1a957bca08fdf3e51f543a409c869f829cc (diff) | |
download | arching-kaos-web-ui-5757847f4c68778378c978ba3bf04eb5c9dceef8.tar.gz arching-kaos-web-ui-5757847f4c68778378c978ba3bf04eb5c9dceef8.tar.bz2 arching-kaos-web-ui-5757847f4c68778378c978ba3bf04eb5c9dceef8.zip |
If no nickname, print IPFS CIDv0 of GPG key found in block
-rw-r--r-- | src/js/arching-kaos-tools.js | 5 |
1 files changed, 4 insertions, 1 deletions
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){ |