mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-17 13:21:44 +01:00
fix imports
This commit is contained in:
parent
ad3fbd8673
commit
d396f777ec
@ -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
|
||||
|
@ -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$;
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user