aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-12-27 16:40:13 +0200
committerkaotisk <kaotisk@arching-kaos.org>2023-12-27 16:40:13 +0200
commit5757847f4c68778378c978ba3bf04eb5c9dceef8 (patch)
tree365475afd07eab59e6ac2191744c0212addefde3 /src/js
parent3d9ea1a957bca08fdf3e51f543a409c869f829cc (diff)
downloadarching-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
Diffstat (limited to 'src/js')
-rw-r--r--src/js/arching-kaos-tools.js5
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){