From 6791cc1a84f607f59d8aa8183b0ab0b03a820e18 Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Tue, 28 May 2024 19:36:40 +0800 Subject: [PATCH] problem: can't publish air replies --- src/lib/components/MessageInput.svelte | 87 +++++++++++++++++++------- src/lib/views/messages/Messages.svelte | 10 +-- 2 files changed, 70 insertions(+), 27 deletions(-) diff --git a/src/lib/components/MessageInput.svelte b/src/lib/components/MessageInput.svelte index 0134f20..951d817 100644 --- a/src/lib/components/MessageInput.svelte +++ b/src/lib/components/MessageInput.svelte @@ -1,10 +1,38 @@ - -
+ +
- + bind:value={content} + >
- - - - - Send message - -
+ +
diff --git a/src/lib/views/messages/Messages.svelte b/src/lib/views/messages/Messages.svelte index 4ed2af5..68fbe1c 100644 --- a/src/lib/views/messages/Messages.svelte +++ b/src/lib/views/messages/Messages.svelte @@ -5,20 +5,22 @@ import MessageInput from '@/components/MessageInput.svelte'; import Input from '@/components/ui/input/input.svelte'; import { currentUser, ndk } from '@/ndk/ndk'; - import { PushEvent, UpdatePubkey, FrontendDataStore as feds, viewed } from '@/snort_workers/main'; + import { PushEvent, FrontendDataStore as feds, viewed } from '@/snort_workers/main'; import { updateRepliesInPlace } from '@/snort_workers/utils'; import { stableShortList, threadParentID, threadParentIDChain } from '@/stores/shortlist'; import { NDKEvent } from '@nostr-dev-kit/ndk'; + import NDKSvelte from '@nostr-dev-kit/ndk-svelte'; import { RequestBuilder, type QueryLike } from '@snort/system'; import { BloomFilter } from 'bloomfilter'; import type { NostrEvent } from 'nostr-tools'; - import { ArrowTurnUpSolid } from 'svelte-awesome-icons'; import { onMount } from 'svelte'; + import { ArrowTurnUpSolid } from 'svelte-awesome-icons'; import { derived, writable } from 'svelte/store'; import RenderKind1 from './RenderKind1.svelte'; import RenderKind1AsThreadHead from './RenderKind1AsThreadHead.svelte'; import { System } from './snort'; - import NDKSvelte from '@nostr-dev-kit/ndk-svelte'; + + let messageInputContent = "" let localEvents = writable(new Map()); @@ -220,7 +222,7 @@ {/if} -
+

HUMBLE HORSE