mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-28 20:43:33 +02:00
@@ -39,7 +39,7 @@ export default function ChannelMessageForm({
|
|||||||
let draft: DraftNostrEvent = {
|
let draft: DraftNostrEvent = {
|
||||||
kind: kinds.ChannelMessage,
|
kind: kinds.ChannelMessage,
|
||||||
content: values.content,
|
content: values.content,
|
||||||
tags: [["e", channel.id]],
|
tags: [["e", rootId || channel.id, "", "root"]],
|
||||||
created_at: dayjs().unix(),
|
created_at: dayjs().unix(),
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -47,10 +47,6 @@ export default function ChannelMessageForm({
|
|||||||
draft = createEmojiTags(draft, emojis);
|
draft = createEmojiTags(draft, emojis);
|
||||||
draft = ensureNotifyPubkeys(draft, contentMentions);
|
draft = ensureNotifyPubkeys(draft, contentMentions);
|
||||||
|
|
||||||
if (rootId) {
|
|
||||||
draft.tags.push(["e", rootId, "", "root"]);
|
|
||||||
}
|
|
||||||
|
|
||||||
setLoadingMessage("Signing...");
|
setLoadingMessage("Signing...");
|
||||||
await publish("Send DM", draft, undefined, false);
|
await publish("Send DM", draft, undefined, false);
|
||||||
reset();
|
reset();
|
||||||
|
@@ -6,6 +6,7 @@ import { useAdditionalRelayContext } from "../../providers/local/additional-rela
|
|||||||
import useUserContactList from "../../hooks/use-user-contact-list";
|
import useUserContactList from "../../hooks/use-user-contact-list";
|
||||||
import { getPubkeysFromList } from "../../helpers/nostr/lists";
|
import { getPubkeysFromList } from "../../helpers/nostr/lists";
|
||||||
import { useWebOfTrust } from "../../providers/global/web-of-trust-provider";
|
import { useWebOfTrust } from "../../providers/global/web-of-trust-provider";
|
||||||
|
import { ErrorBoundary } from "../../components/error-boundary";
|
||||||
|
|
||||||
export default function UserFollowingTab() {
|
export default function UserFollowingTab() {
|
||||||
const webOfTrust = useWebOfTrust();
|
const webOfTrust = useWebOfTrust();
|
||||||
@@ -22,7 +23,9 @@ export default function UserFollowingTab() {
|
|||||||
return (
|
return (
|
||||||
<SimpleGrid columns={{ base: 1, lg: 2, xl: 3 }} spacing="2" p="2">
|
<SimpleGrid columns={{ base: 1, lg: 2, xl: 3 }} spacing="2" p="2">
|
||||||
{sorted.map(({ pubkey, relay }) => (
|
{sorted.map(({ pubkey, relay }) => (
|
||||||
<UserCard key={pubkey} pubkey={pubkey} relay={relay} />
|
<ErrorBoundary>
|
||||||
|
<UserCard key={pubkey} pubkey={pubkey} relay={relay} />
|
||||||
|
</ErrorBoundary>
|
||||||
))}
|
))}
|
||||||
</SimpleGrid>
|
</SimpleGrid>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user