mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-26 17:52:18 +01:00
always write to outbox
This commit is contained in:
parent
9d3384a7d6
commit
18b6c503ff
@ -57,6 +57,8 @@ import { useThrottle } from "react-use";
|
||||
import MinePOW from "../mine-pow";
|
||||
import useAppSettings from "../../hooks/use-app-settings";
|
||||
import { ErrorBoundary } from "../error-boundary";
|
||||
import RelaySet from "../../classes/relay-set";
|
||||
import clientRelaysService from "../../services/client-relays";
|
||||
|
||||
type FormValues = {
|
||||
subject: string;
|
||||
@ -152,7 +154,7 @@ export default function PostModal({
|
||||
const publish = async (draft = getDraft()) => {
|
||||
try {
|
||||
const signed = await requestSignature(draft);
|
||||
const pub = new NostrPublishAction("Post", writeRelays, signed);
|
||||
const pub = new NostrPublishAction("Post", RelaySet.from(clientRelaysService.outbox, writeRelays), signed);
|
||||
setPublishAction(pub);
|
||||
} catch (e) {
|
||||
if (e instanceof Error) toast({ description: e.message, status: "error" });
|
||||
|
Loading…
x
Reference in New Issue
Block a user