diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index 06a3f28c5..97b943b79 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -1135,8 +1135,11 @@ export async function setVisibilityUtil( try { const resp = await axios.post(url, payload, { headers }); if (resp.status === 200) { - db.contacts.update(contact.did, { seesMe: visibility }); - return { success: true }; + const success = resp.data.success; + if (success) { + db.contacts.update(contact.did, { seesMe: visibility }); + } + return { success }; } else { console.error( "Got some bad server response when setting visibility: ", diff --git a/src/views/ContactsView.vue b/src/views/ContactsView.vue index 1fc73e979..18b515d98 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -128,17 +128,44 @@ {{ contact.did }}
- Public Key (base 64): {{ contact.publicKeyBase64 }} + Public Key (base 64): + + Copied Key + {{ contact.publicKeyBase64 }}
Next Public Key Hash (base 64): + + Copied Hash {{ contact.nextPubKeyHashB64 }}
+ + + + + + + +