show listr list names

This commit is contained in:
hzrd149 2023-09-12 08:06:35 -05:00
parent b961ee151e
commit 36b1114d31
2 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,11 @@ export function getListName(event: NostrEvent) {
if (event.kind === Kind.Contacts) return "Following";
if (event.kind === PIN_LIST_KIND) return "Pins";
if (event.kind === MUTE_LIST_KIND) return "Mute";
return event.tags.find((t) => t[0] === "title")?.[1] || event.tags.find(isDTag)?.[1];
return (
event.tags.find((t) => t[0] === "name")?.[1] ||
event.tags.find((t) => t[0] === "title")?.[1] ||
event.tags.find(isDTag)?.[1]
);
}
export function isSpecialListKind(kind: number) {

View File

@ -64,8 +64,6 @@ export default function ListDetailsView() {
<Spacer />
<EventRelays event={event} />
<ListFeedButton list={event} />
{isAuthor && (
<Button colorScheme="red" onClick={() => deleteEvent(event).then(() => navigate("/lists"))}>