From a10f62c1e1d4d2eac4821db19bbc40493b83d0d2 Mon Sep 17 00:00:00 2001 From: silberengel Date: Sat, 9 Aug 2025 09:12:05 +0200 Subject: [PATCH] show all 100 messages --- src/lib/components/Notifications.svelte | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/lib/components/Notifications.svelte b/src/lib/components/Notifications.svelte index 45ee83e..548896b 100644 --- a/src/lib/components/Notifications.svelte +++ b/src/lib/components/Notifications.svelte @@ -17,7 +17,7 @@ import { Modal, Button } from "flowbite-svelte"; import { searchProfiles } from "$lib/utils/search_utility"; import type { NostrProfile } from "$lib/utils/search_types"; - import { PlusOutline } from "flowbite-svelte-icons"; + import { PlusOutline, ReplyOutline } from "flowbite-svelte-icons"; const { event } = $props<{ event: NDKEvent }>(); @@ -410,6 +410,13 @@ // Create p-tags for all recipients const pTags = selectedRecipients.map(recipient => ["p", recipient.pubkey!]); + // Add q tag if replying to a message (for jump-to functionality) + if (replyToMessage) { + // Get the first relay from newMessageRelays or use a fallback + const relayUrl = newMessageRelays[0] || "wss://freelay.sovbit.host/"; + pTags.push(["q", replyToMessage.id, relayUrl, replyToMessage.pubkey]); + } + // Get all recipient pubkeys for relay calculation const recipientPubkeys = selectedRecipients.map(r => r.pubkey!); @@ -851,9 +858,7 @@ title="Reply to this message" aria-label="Reply to this message" > - - - +