mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-01 00:19:45 +02:00
only show people lists under follow button
This commit is contained in:
parent
49ee149f20
commit
8ad1ae2ec5
@ -17,6 +17,7 @@ import { useCurrentAccount } from "../hooks/use-current-account";
|
||||
import { ArrowDownSIcon, FollowIcon, PlusCircleIcon, UnfollowIcon } from "./icons";
|
||||
import useUserLists from "../hooks/use-user-lists";
|
||||
import {
|
||||
PEOPLE_LIST_KIND,
|
||||
createEmptyContactList,
|
||||
draftAddPerson,
|
||||
draftRemovePerson,
|
||||
@ -40,7 +41,7 @@ function UsersLists({ pubkey }: { pubkey: string }) {
|
||||
const [isLoading, setLoading] = useState(false);
|
||||
const newListModal = useDisclosure();
|
||||
|
||||
const lists = useUserLists(account.pubkey);
|
||||
const lists = useUserLists(account.pubkey).filter((list) => list.kind === PEOPLE_LIST_KIND);
|
||||
|
||||
const inLists = lists.filter((list) => getPubkeysFromList(list).some((p) => p.pubkey === pubkey));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user