mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-10-09 20:33:03 +02:00
Merge pull request #133 from nikolat/master
add root marker by default in channels
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user