From 5977a4099f9e11cb092c0cd0766ffebae078f7d0 Mon Sep 17 00:00:00 2001 From: Jonathan Staab Date: Mon, 19 Jun 2023 08:37:51 -0700 Subject: [PATCH] Support notifications on non-1's --- src/app/views/Notifications.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/views/Notifications.svelte b/src/app/views/Notifications.svelte index 03eaafe8..ea99017d 100644 --- a/src/app/views/Notifications.svelte +++ b/src/app/views/Notifications.svelte @@ -10,7 +10,7 @@ formatTimestampAsLocalISODate, createScroller, } from "src/util/misc" - import {findReplyId} from "src/util/nostr" + import {findReplyId, noteKinds} from "src/util/nostr" import Spinner from "src/partials/Spinner.svelte" import Tabs from "src/partials/Tabs.svelte" import Content from "src/partials/Content.svelte" @@ -48,12 +48,12 @@ .slice(0, limit) .map(e => [e, userEvents.get(findReplyId(e))]) .filter(([e, ref]) => { - if (ref && ref.kind !== 1) { + if (ref && !noteKinds.includes(ref.kind)) { return false } if (activeTab === tabs[0]) { - return [1].includes(e.kind) + return noteKinds.includes(e.kind) } else { return [7, 9735].includes(e.kind) && ref }