diff --git a/src/components/Diff.svelte b/src/components/Diff.svelte index dd33742d8..d3351f411 100644 --- a/src/components/Diff.svelte +++ b/src/components/Diff.svelte @@ -17,7 +17,6 @@ embeds: Embed[], ) => Promise; 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); diff --git a/src/components/Discussion.svelte b/src/components/Discussion.svelte index 1307ced33..8c2f8ef42 100644 --- a/src/components/Discussion.svelte +++ b/src/components/Discussion.svelte @@ -31,7 +31,6 @@ embeds: Embed[], ) => Promise; reactOnComment: ( - publicKey: string, commentId: string, authors: Author[], reaction: string, @@ -149,7 +148,7 @@ )} {editComment} createReply={createComment} - reactOnComment={partial(reactOnComment, config.publicKey)} /> + {reactOnComment} />
{/each} diff --git a/src/components/Review.svelte b/src/components/Review.svelte index 45695d7ed..19c0fc2b8 100644 --- a/src/components/Review.svelte +++ b/src/components/Review.svelte @@ -221,7 +221,6 @@ } async function reactOnComment( - publicKey: string, commentId: string, authors: Author[], reaction: string, @@ -239,7 +238,7 @@ reaction, review: review.id, active: !authors.find( - ({ did }) => publicKeyFromDid(did) === publicKey, + ({ did }) => publicKeyFromDid(did) === config.publicKey, ), }, opts: { announce: $nodeRunning && $announce }, diff --git a/src/components/Revision.svelte b/src/components/Revision.svelte index 4280bb28e..cb11d2891 100644 --- a/src/components/Revision.svelte +++ b/src/components/Revision.svelte @@ -129,7 +129,6 @@ } async function reactOnComment( - publicKey: string, commentId: string, authors: Author[], reaction: string, @@ -144,7 +143,7 @@ reaction, revision: revision.id, active: !authors.find( - ({ did }) => publicKeyFromDid(did) === publicKey, + ({ did }) => publicKeyFromDid(did) === config.publicKey, ), }, opts: { announce: $nodeRunning && $announce }, diff --git a/src/views/repo/Issue.svelte b/src/views/repo/Issue.svelte index 91263b31f..52bd89a86 100644 --- a/src/views/repo/Issue.svelte +++ b/src/views/repo/Issue.svelte @@ -230,7 +230,6 @@ } async function reactOnComment( - publicKey: string, commentId: string, authors: Author[], reaction: string, @@ -244,7 +243,7 @@ id: commentId, reaction, active: !authors.find( - ({ did }) => publicKeyFromDid(did) === publicKey, + ({ did }) => publicKeyFromDid(did) === config.publicKey, ), }, opts: { announce: $nodeRunning && $announce }, @@ -456,11 +455,7 @@ repo.delegates.map(delegate => delegate.did), issue.body.author.did, ) && partial(editComment, issue.body.id)} - reactOnComment={partial( - reactOnComment, - config.publicKey, - issue.body.id, - )}> + reactOnComment={partial(reactOnComment, issue.body.id)}>