adjust didInfo so we can use DIDs and not identities, removing last of identities in memory

This commit is contained in:
2023-07-11 15:30:51 -06:00
parent 8add6448fb
commit b86323ec83
5 changed files with 20 additions and 27 deletions

View File

@@ -82,11 +82,8 @@ export function isHiddenDid(did) {
/**
always returns text, maybe UNNAMED_VISIBLE or UNKNOWN_ENTITY
**/
export function didInfo(did, activeDid, identifiers, contacts) {
const myId: IIdentifier | undefined = R.find(
(i) => i.did === did,
identifiers,
);
export function didInfo(did, activeDid, allMyDids, contacts) {
const myId: string | undefined = R.find(R.identity, allMyDids);
if (myId) {
return "You" + (myId.did !== activeDid ? " (Alt ID)" : "");
} else {