mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-29 11:12:12 +01:00
add root marker by default in channels
This commit is contained in:
parent
8879641511
commit
e3172ee013
@ -39,7 +39,7 @@ export default function ChannelMessageForm({
|
||||
let draft: DraftNostrEvent = {
|
||||
kind: kinds.ChannelMessage,
|
||||
content: values.content,
|
||||
tags: [["e", channel.id]],
|
||||
tags: [["e", rootId || channel.id, "", "root"]],
|
||||
created_at: dayjs().unix(),
|
||||
};
|
||||
|
||||
@ -47,10 +47,6 @@ export default function ChannelMessageForm({
|
||||
draft = createEmojiTags(draft, emojis);
|
||||
draft = ensureNotifyPubkeys(draft, contentMentions);
|
||||
|
||||
if (rootId) {
|
||||
draft.tags.push(["e", rootId, "", "root"]);
|
||||
}
|
||||
|
||||
setLoadingMessage("Signing...");
|
||||
await publish("Send DM", draft, undefined, false);
|
||||
reset();
|
||||
|
Loading…
x
Reference in New Issue
Block a user