| |
reactions={reply.reactions}
|
| |
timestamp={reply.edits[0].timestamp}
|
| |
body={reply.edits.slice(-1)[0].body}
|
| - |
editComment={editComment &&
|
| - |
canEditComment(reply.author.did) &&
|
| - |
partial(editComment, reply.id)}
|
| - |
reactOnComment={reactOnComment &&
|
| - |
partial(reactOnComment, reply.id)} />
|
| + |
editComment={canEditComment(root.author.did) &&
|
| + |
editComment?.bind(null, root.id)}
|
| + |
reactOnComment={reactOnComment?.bind(null, root.id)} />
|
| |
{/each}
|
| |
{/if}
|
| |
{#if createReply && showReplyForm}
|
| |
reactions={root.reactions}
|
| |
timestamp={root.edits.slice(-1)[0].timestamp}
|
| |
body={root.edits.slice(-1)[0].body}
|
| - |
editComment={editComment &&
|
| - |
canEditComment(root.author.did) &&
|
| - |
partial(editComment, root.id)}
|
| - |
reactOnComment={reactOnComment && partial(reactOnComment, root.id)}>
|
| + |
editComment={canEditComment(root.author.did) &&
|
| + |
editComment?.bind(null, root.id)}
|
| + |
reactOnComment={reactOnComment?.bind(null, root.id)}>
|
| |
{#snippet actions()}
|
| |
{#if createReply}
|
| |
<Icon name="reply" onclick={toggleReply} />
|