add visibility flag set, refactor to see results, and add copy icons for contact info
This commit is contained in:
@@ -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: ",
|
||||
|
||||
Reference in New Issue
Block a user