From 919b48e61faf04066613130e32aa0dea5d5f3f70 Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Thu, 7 Aug 2025 15:08:57 +0800 Subject: [PATCH 1/2] Remove unneeded comment --- src/components/GiftedDialog.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/GiftedDialog.vue b/src/components/GiftedDialog.vue index 828a6001..cd70fd78 100644 --- a/src/components/GiftedDialog.vue +++ b/src/components/GiftedDialog.vue @@ -209,8 +209,6 @@ export default class GiftedDialog extends Vue { this.firstStep = !giver; this.stepType = "giver"; - // Entity types are now set via props, no need to call updateEntityTypes() - try { const settings = await this.$settings(); this.apiServer = settings.apiServer || ""; From 795df6a8fb5e87dc9b7e292c0d5cfde1cb6c162d Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Thu, 7 Aug 2025 15:33:45 +0800 Subject: [PATCH 2/2] Test "You" explicitly; fallback is "Unnamed" --- src/views/ContactGiftingView.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/views/ContactGiftingView.vue b/src/views/ContactGiftingView.vue index b9c91bb0..75e8eea2 100644 --- a/src/views/ContactGiftingView.vue +++ b/src/views/ContactGiftingView.vue @@ -263,10 +263,10 @@ export default class ContactGiftingView extends Vue { handleId: this.recipientProjectHandleId, }; } else { - // Check if the preserved recipient was "Unnamed" (empty DID) or a regular contact - if (this.recipientDid === "") { - // Recipient was "Unnamed" - recipient = { did: "", name: "Unnamed" }; + // Check if the preserved recipient was "You" or a regular contact + if (this.recipientDid === this.activeDid) { + // Recipient was "You" + recipient = { did: this.activeDid, name: "You" }; } else if (this.recipientDid) { // Recipient was a regular contact recipient = { @@ -274,8 +274,8 @@ export default class ContactGiftingView extends Vue { name: this.recipientProjectName || "Someone", }; } else { - // Fallback to current user - recipient = { did: this.activeDid, name: "You" }; + // Fallback to "Unnamed" + recipient = { did: "", name: "Unnamed" }; } } } else { @@ -291,10 +291,10 @@ export default class ContactGiftingView extends Vue { handleId: this.giverProjectHandleId, }; } else { - // Check if the preserved giver was "Unnamed" (empty DID) or a regular contact - if (this.giverDid === "") { - // Giver was "Unnamed" - giver = { did: "", name: "Unnamed" }; + // Check if the preserved giver was "You" or a regular contact + if (this.giverDid === this.activeDid) { + // Giver was "You" + giver = { did: this.activeDid, name: "You" }; } else if (this.giverDid) { // Giver was a regular contact giver = { @@ -302,8 +302,8 @@ export default class ContactGiftingView extends Vue { name: this.giverProjectName || "Someone", }; } else { - // Fallback to current user - giver = { did: this.activeDid, name: "You" }; + // Fallback to "Unnamed" + giver = { did: "", name: "Unnamed" }; } } }