fix imports

This commit is contained in:
hzrd149 2025-02-15 11:42:07 -06:00
parent ad3fbd8673
commit d396f777ec
3 changed files with 8 additions and 8 deletions

View File

@ -1,9 +1,10 @@
import { kinds } from "nostr-tools";
import { DraftNostrEvent, NostrEvent, RTag, Tag, isRTag } from "../../types/nostr-event";
import { isSafeRelayURL } from "applesauce-core/helpers/relays";
import { normalizeURL } from "applesauce-core/helpers/url";
import { DraftNostrEvent, NostrEvent, RTag, Tag } from "../../types/nostr-event";
import { cloneEvent } from "./event";
import { RelayMode } from "../../services/app-relays";
import { isSafeRelayURL } from "../../../../applesauce/packages/core/dist/helpers/relays";
import { normalizeURL } from "applesauce-core/helpers";
/**
* fixes or removes any bad r tags

View File

@ -203,11 +203,10 @@ const notifications$: Observable<CategorizedEvent[]> = combineLatest([accounts.a
return combineLatest([timeline$, mute$]).pipe(
// filter events out by mutes
map(([timeline, mutes]) => filterEvents(timeline, account.pubkey, mutes)),
// keep the observable hot for 5 minutes after its unsubscribed
share({ connector: () => new ReplaySubject(1), resetOnComplete: () => timer(5 * 60_000) }),
);
}),
share(),
// keep the observable hot for 5 minutes after its unsubscribed
share({ connector: () => new ReplaySubject(1), resetOnComplete: () => timer(5 * 60_000) }),
);
export default notifications$;

View File

@ -1,9 +1,9 @@
import { Button, Flex, FlexProps, useToast } from "@chakra-ui/react";
import { isSafeRelayURL } from "applesauce-core/helpers/relays";
import { normalizeURL } from "applesauce-core/helpers/url";
import { useForm } from "react-hook-form";
import { RelayUrlInput } from "../../../components/relay-url-input";
import { isSafeRelayURL } from "../../../../../applesauce/packages/core/dist/helpers/relays";
import { normalizeURL } from "applesauce-core/helpers";
export default function AddRelayForm({
onSubmit,