add visibility flag set, refactor to see results, and add copy icons for contact info

This commit is contained in:
2024-07-28 20:15:36 -06:00
parent b2545e2f76
commit 710e00fdc2
2 changed files with 58 additions and 11 deletions

View File

@@ -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: ",