From fb29d330fc10533b70902023fbe7519686db7c60 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Thu, 7 Dec 2023 18:46:08 +0200 Subject: [PATCH] remove nip05 from all ProfileImage rows --- packages/app/config/default.json | 3 +-- packages/app/config/iris.json | 3 +-- packages/app/custom.d.ts | 1 - packages/app/src/Element/Chat/ChatParticipant.tsx | 9 +-------- packages/app/src/Element/Event/NoteInner.tsx | 1 - packages/app/src/Element/Trending/ShortNote.tsx | 2 +- packages/app/src/Element/User/ProfileCard.tsx | 2 +- packages/app/src/Element/User/ProfileImage.tsx | 7 ------- 8 files changed, 5 insertions(+), 23 deletions(-) diff --git a/packages/app/config/default.json b/packages/app/config/default.json index 2831ea65..30d58f9d 100644 --- a/packages/app/config/default.json +++ b/packages/app/config/default.json @@ -30,6 +30,5 @@ "wss://relay.snort.social/": { "read": true, "write": true }, "wss://nostr.wine/": { "read": true, "write": false }, "wss://eden.nostr.land/": { "read": true, "write": false } - }, - "showNip05InNotes": true + } } diff --git a/packages/app/config/iris.json b/packages/app/config/iris.json index 14d94cce..5601fbcd 100644 --- a/packages/app/config/iris.json +++ b/packages/app/config/iris.json @@ -30,6 +30,5 @@ "wss://eden.nostr.land/": { "read": true, "write": false }, "wss://relay.nostr.band/": { "read": true, "write": true }, "wss://relay.damus.io/": { "read": true, "write": true } - }, - "showNip05InNotes": false + } } diff --git a/packages/app/custom.d.ts b/packages/app/custom.d.ts index 33e7bd38..f665a820 100644 --- a/packages/app/custom.d.ts +++ b/packages/app/custom.d.ts @@ -72,7 +72,6 @@ declare const CONFIG: { eventLinkPrefix: NostrPrefix; profileLinkPrefix: NostrPrefix; defaultRelays: Record; - showNip05InNotes: boolean; }; /** diff --git a/packages/app/src/Element/Chat/ChatParticipant.tsx b/packages/app/src/Element/Chat/ChatParticipant.tsx index 20d52b27..9cd8bc0c 100644 --- a/packages/app/src/Element/Chat/ChatParticipant.tsx +++ b/packages/app/src/Element/Chat/ChatParticipant.tsx @@ -10,12 +10,5 @@ export function ChatParticipantProfile({ participant }: { participant: ChatParti if (participant.id === publicKey) { return ; } - return ( - - ); + return ; } diff --git a/packages/app/src/Element/Event/NoteInner.tsx b/packages/app/src/Element/Event/NoteInner.tsx index 1795673b..846ed481 100644 --- a/packages/app/src/Element/Event/NoteInner.tsx +++ b/packages/app/src/Element/Event/NoteInner.tsx @@ -335,7 +335,6 @@ export function NoteInner(props: NoteProps) { pubkey={ev.pubkey} subHeader={replyTag() ?? undefined} link={opt?.canClick === undefined ? undefined : ""} - showNip05={CONFIG.showNip05InNotes} />
{props.context} diff --git a/packages/app/src/Element/Trending/ShortNote.tsx b/packages/app/src/Element/Trending/ShortNote.tsx index c62c1e11..e2cd5173 100644 --- a/packages/app/src/Element/Trending/ShortNote.tsx +++ b/packages/app/src/Element/Trending/ShortNote.tsx @@ -10,7 +10,7 @@ export default function ShortNote({ event }: { event: TaggedNostrEvent }) { return (
- +
diff --git a/packages/app/src/Element/User/ProfileCard.tsx b/packages/app/src/Element/User/ProfileCard.tsx index d1dbb9ab..6153890d 100644 --- a/packages/app/src/Element/User/ProfileCard.tsx +++ b/packages/app/src/Element/User/ProfileCard.tsx @@ -49,7 +49,7 @@ export function ProfileCard({ align="end">
- +
{/*