- {#if $replies.length > 0 && showReplies}
-
-
- {$replies.length}
-
- {/if}
- {#each groupBy( e => e.content, uniqBy(e => e.pubkey + e.content, $reactions), ).entries() as [content, events]}
- {@const isOwn = events.some(e => e.pubkey === $pubkey)}
- {@const onClick = () => onReactionClick(content, events)}
-
- {/each}
-
-{/if}
diff --git a/src/app/components/ReplySummary.svelte b/src/app/components/ReplySummary.svelte
new file mode 100644
index 0000000..b0ceb19
--- /dev/null
+++ b/src/app/components/ReplySummary.svelte
@@ -0,0 +1,19 @@
+
+
+{#if $replies.length > 0}
+
-
-
+
+
+
-
-
-
-
-
+
+ {#if showActivity}
+
+
+ {$replies.length} {$replies.length === 1 ? "reply" : "replies"}
+
+
+ Active {formatTimestampRelative(lastActive)}
+
+ {/if}
+
diff --git a/src/app/components/ThreadItem.svelte b/src/app/components/ThreadItem.svelte
index 49198e8..3522584 100644
--- a/src/app/components/ThreadItem.svelte
+++ b/src/app/components/ThreadItem.svelte
@@ -1,21 +1,15 @@
@@ -27,14 +21,6 @@
-
-
-
- {$replies.length} {$replies.length === 1 ? "reply" : "replies"}
-
-
- Active {formatTimestampRelative(lastActive)}
-
-
+
diff --git a/src/app/components/ThreadMenu.svelte b/src/app/components/ThreadMenu.svelte
index 266ab81..3ea37d1 100644
--- a/src/app/components/ThreadMenu.svelte
+++ b/src/app/components/ThreadMenu.svelte
@@ -7,11 +7,14 @@
import ThreadShare from "@app/components/ThreadShare.svelte"
import {publishDelete} from "@app/commands"
import {pushModal} from "@app/modal"
+ import {REPLY} from "@app/state"
export let url
export let event
export let onClick
+ const isRoot = event.kind !== REPLY
+
const showInfo = () => {
onClick()
pushModal(EventInfo, {event})
@@ -40,12 +43,14 @@
- -
-
-
- Share to Chat
-
-
+ {#if isRoot}
+ -
+
+
+ Share to Chat
+
+
+ {/if}
-