diff --git a/src/app/components/ArticleActions.svelte b/src/app/components/ArticleActions.svelte index b57d4bee..004fd113 100644 --- a/src/app/components/ArticleActions.svelte +++ b/src/app/components/ArticleActions.svelte @@ -47,7 +47,7 @@ {/each} - + {/if} - + {/each} - + {#snippet status()} {/snippet} diff --git a/src/app/components/CommentActions.svelte b/src/app/components/CommentActions.svelte index 4ad8d368..60ef3487 100644 --- a/src/app/components/CommentActions.svelte +++ b/src/app/components/CommentActions.svelte @@ -30,7 +30,7 @@
- + {/if} - + {/if} - + import cx from "classnames" - import {get, readable} from "svelte/store" + import {readable} from "svelte/store" import { hash, gte, @@ -39,6 +39,7 @@ import RoomItemMenuMobile from "@app/components/RoomItemMenuMobile.svelte" import RoomItemContent from "@app/components/RoomItemContent.svelte" import {profiles, thunks, user} from "@app/core" + import {noThunks, thunksByEventId} from "@app/thunks" import {colors} from "@app/theme" import {ENABLE_ZAPS} from "@app/env" import type {FeedContext} from "@app/feeds" @@ -69,7 +70,7 @@ const h = tagValue(tagSpec("h"), event.tags) const today = formatTimestampAsDate(now()) const profileDisplay = $profiles.display(event.pubkey, [url]).$ - const thunk = $thunks.merge(get($thunks.history).filter(t => t.event.id === event.id)) + const thunk = $derived($thunks.merge($thunksByEventId.get(event.id) ?? noThunks)) const [_, colorValue] = colors[hash(event.pubkey) % colors.length] const qTag = matchTag(tagSpec("q"), event.tags) diff --git a/src/app/components/ThreadActions.svelte b/src/app/components/ThreadActions.svelte index 56043ebd..78600237 100644 --- a/src/app/components/ThreadActions.svelte +++ b/src/app/components/ThreadActions.svelte @@ -34,7 +34,7 @@ Posted in # {/if} - + - + Sending...