Always load thread info

This commit is contained in:
2023-01-06 19:29:12 +00:00
parent 7831bdbcc2
commit 9e162f0014
5 changed files with 20 additions and 21 deletions

View File

@ -62,12 +62,12 @@ export default function useEventPublisher() {
ev.Kind = EventKind.TextNote;
ev.Content = msg;
let thread = replyTo.GetThread();
let thread = replyTo.Thread;
if (thread) {
if (thread.Root) {
ev.Tags.push(new Tag(["e", thread.Root.Event, "", "root"], ev.Tags.length));
} else {
let unRootedReply = thread.Reply.GetThread();
let unRootedReply = thread.Reply.Thread;
ev.Tags.push(new Tag(["e", unRootedReply.ReplyTo.Event, "", "root"], ev.Tags.length));
}
if (thread.Reply) {