forked from jsnbuchanan/crowd-funder-for-time-pwa
remove remaining getIdentity calls & fix QR code for did:peer
This commit is contained in:
@@ -6,7 +6,7 @@ import { DEFAULT_IMAGE_API_SERVER } from "@/constants/app";
|
||||
import { Contact } from "@/db/tables/contacts";
|
||||
import { accessToken } from "@/libs/crypto";
|
||||
import { NonsensitiveDexie } from "@/db/index";
|
||||
import { getAccount, getIdentity } from "@/libs/util";
|
||||
import { getAccount } from "@/libs/util";
|
||||
import { createEndorserJwtForKey, KeyMeta } from "@/libs/crypto/vc";
|
||||
|
||||
export const SCHEMA_ORG_CONTEXT = "https://schema.org";
|
||||
@@ -1001,8 +1001,7 @@ export async function setVisibilityUtil(
|
||||
}
|
||||
const url =
|
||||
apiServer + "/api/report/" + (visibility ? "canSeeMe" : "cannotSeeMe");
|
||||
const identity = await getIdentity(activeDid);
|
||||
const headers = await getHeaders(identity.did);
|
||||
const headers = await getHeaders(activeDid);
|
||||
const payload = JSON.stringify({ did: contact.did });
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user