diff --git a/src/app/components/ChannelMessage.svelte b/src/app/components/ChannelMessage.svelte index d100c3e..bff3921 100644 --- a/src/app/components/ChannelMessage.svelte +++ b/src/app/components/ChannelMessage.svelte @@ -6,7 +6,6 @@ pubkey, formatTimestampAsDate, formatTimestampAsTime, - thunkIsComplete, deriveProfile, deriveProfileDisplay, } from "@welshman/app" @@ -42,7 +41,6 @@ const profile = deriveProfile(event.pubkey, [url]) const profileDisplay = deriveProfileDisplay(event.pubkey, [url]) const [_, colorValue] = colors[parseInt(hash(event.pubkey)) % colors.length] - const hideMenuButton = $derived($thunk && !thunkIsComplete($thunk)) const reply = () => replyTo!(event) @@ -100,7 +98,7 @@
- {#if !isMobile && !hideMenuButton} + {#if !isMobile} - - - {/if} - +{#if showFailure} + {@const url = failedUrls[0]} + {@const status = $thunk.status[url]} + {@const message = $thunk.details[url]} +
+ + {#snippet children()} + + + Failed to send! + + {/snippet} + +
+{:else if showPending} +
+ + + Sending... + +
{/if}