Simplify reactOnComment action

This commit is contained in:
Thomas Scholtes
2025-07-16 12:58:03 +02:00
committed by Rūdolfs Ošiņš
parent fdabbac599
commit a33799d62a
5 changed files with 6 additions and 16 deletions
+1 -3
View File
@@ -17,7 +17,6 @@
embeds: Embed[],
) => Promise<void>;
reactOnComment?: (
publicKey: string,
commentId: string,
authors: Author[],
reaction: string,
@@ -436,8 +435,7 @@
inline
rid={codeComments.rid}
{thread}
reactOnComment={codeComments.reactOnComment &&
partial(codeComments.reactOnComment, codeComments.config.publicKey)}
reactOnComment={codeComments.reactOnComment}
createReply={(codeComments.canReply ?? true)
? async (body, embeds) => {
await codeComments.createComment(body, embeds, thread.root.id);