diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index 06a3f28..97b943b 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 1fc73e9..18b515d 100644 --- a/src/views/ContactsView.vue +++ b/src/views/ContactsView.vue @@ -128,17 +128,44 @@ {{ contact.did }}