From 7da6f722f5605448b9ca4555c481263b5e613761 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 30 Aug 2025 21:30:03 -0600 Subject: [PATCH] fix: fix remaining problems with recent plan changes --- src/libs/endorserServer.ts | 16 +++++ src/views/NewActivityView.vue | 108 ++++++++++++++++++++++------------ 2 files changed, 87 insertions(+), 37 deletions(-) diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts index 378373a6..5e4815bc 100644 --- a/src/libs/endorserServer.ts +++ b/src/libs/endorserServer.ts @@ -367,6 +367,22 @@ export function didInfo( return didInfoForContact(did, activeDid, contact, allMyDids).displayName; } +/** + * In some contexts (eg. agent), a blank really is nobody. + */ +export function didInfoOrNobody( + did: string | undefined, + activeDid: string | undefined, + allMyDids: string[], + contacts: Contact[], +): string { + if (did == null) { + return "Nobody"; + } else { + return didInfo(did, activeDid, allMyDids, contacts); + } +} + /** * return text description without any references to "you" as user */ diff --git a/src/views/NewActivityView.vue b/src/views/NewActivityView.vue index 934c70d0..af5c89be 100644 --- a/src/views/NewActivityView.vue +++ b/src/views/NewActivityView.vue @@ -255,6 +255,7 @@ +
The changes did not affect essential project data.