diff --git a/src/app/components/ProfileDetail.svelte b/src/app/components/ProfileDetail.svelte index 5df4a86d..1d4208e4 100644 --- a/src/app/components/ProfileDetail.svelte +++ b/src/app/components/ProfileDetail.svelte @@ -3,9 +3,9 @@ import {nip19} from "nostr-tools" import {ctx, sleep, sortBy, flatten} from "@welshman/lib" import {feedFromFilter} from "@welshman/feeds" - import {NOTE, displayProfile, displayPubkey, getAncestorTags} from "@welshman/util" + import {NOTE, displayProfile, getListTags, getPubkeyTagValues, displayPubkey, getAncestorTags} from "@welshman/util" import {deriveEvents} from "@welshman/store" - import {repository, deriveProfile, displayNip05, feedLoader} from "@welshman/app" + import {repository, userFollows, tagPubkey, follow, unfollow, deriveProfile, displayNip05, feedLoader} from "@welshman/app" import {createScroller} from "@lib/html" import {fly} from "@lib/transition" import Link from "@lib/components/Link.svelte" @@ -43,20 +43,31 @@
{#if $profile} - -
- -
-
-
-
- {displayProfile($profile, pubkeyDisplay)} + +
+
+ +
+
+
+
+ {displayProfile($profile, pubkeyDisplay)} +
+
+
+ {$profile?.nip05 ? displayNip05($profile.nip05) : pubkeyDisplay}
-
- {$profile?.nip05 ? displayNip05($profile.nip05) : pubkeyDisplay} -
+ {#if getPubkeyTagValues(getListTags($userFollows)).includes(pubkey)} + + {:else} + + {/if}
diff --git a/src/routes/home/[chat]/+page.svelte b/src/routes/home/[chat]/+page.svelte index 534a6cdd..a7096195 100644 --- a/src/routes/home/[chat]/+page.svelte +++ b/src/routes/home/[chat]/+page.svelte @@ -108,7 +108,7 @@
{#if others.length === 1} {@const pubkey = others[0]} - {@const showProfile = () => pushModal(ProfileDetail, {pubkey})} + {@const showProfile = () => pushModal(ProfileDetail, {pubkey}, {drawer: true})}