diff --git a/src/app/components/ChannelMessageMenuMobile.svelte b/src/app/components/ChannelMessageMenuMobile.svelte index 8a362725d..67a5d3725 100644 --- a/src/app/components/ChannelMessageMenuMobile.svelte +++ b/src/app/components/ChannelMessageMenuMobile.svelte @@ -10,12 +10,18 @@ import {publishReaction} from "@app/commands" import {pushModal} from "@app/modal" - const {url, event, reply} = $props() + type Props = { + url: string + event: TrustedEvent + reply: () => void + } + + const {url, event, reply}: Props = $props() const onEmoji = ((event: TrustedEvent, url: string, emoji: NativeEmoji) => { history.back() publishReaction({event, relays: [url], content: emoji.unicode}) - }).bind(undefined, $state.snapshot(event), url) + }).bind(undefined, event, url) const showEmojiPicker = () => pushModal(EmojiPicker, {onClick: onEmoji}, {replaceState: true}) diff --git a/src/app/components/Chat.svelte b/src/app/components/Chat.svelte index 4efdb8b7b..3cdd35ea0 100644 --- a/src/app/components/Chat.svelte +++ b/src/app/components/Chat.svelte @@ -42,8 +42,6 @@ const others = remove($pubkey!, pubkeys) const missingInboxes = $derived(pubkeys.filter(pk => !$inboxRelaySelectionsByPubkey.has(pk))) - const assertEvent = (e: any) => e as TrustedEvent - const showMembers = () => pushModal(ProfileList, {pubkeys: others, title: `People in this conversation`}) @@ -196,7 +194,11 @@ {#if type === "date"} {value} {:else} - + {/if} {/each}

{ history.back() sendWrapped({template: makeReaction({event, content: emoji.unicode}), pubkeys}) - }).bind(undefined, $state.snapshot(event)) + }).bind(undefined, event) const showEmojiPicker = () => pushModal(EmojiPicker, {onClick: onEmoji}, {replaceState: true}) diff --git a/src/app/components/EventDeleteConfirm.svelte b/src/app/components/EventDeleteConfirm.svelte index b13c5c9c1..52391430b 100644 --- a/src/app/components/EventDeleteConfirm.svelte +++ b/src/app/components/EventDeleteConfirm.svelte @@ -1,14 +1,18 @@