Skip to content

Commit

Permalink
Merge pull request #1428 from SnowCait/ensure-notification-is-read
Browse files Browse the repository at this point in the history
Ensure notification is read
  • Loading branch information
SnowCait committed Sep 17, 2024
2 parents c7e339b + f98b73c commit 797c350
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/routes/(app)/notifications/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { referencesReqEmit, rxNostr, storeSeenOn } from '$lib/timelines/MainTimeline';
import { appName, minTimelineLength, notificationsFilterKinds } from '$lib/Constants';
import { EventItem } from '$lib/Items';
import { notifiedEventItems } from '$lib/author/Notifications';
import { lastReadAt, notifiedEventItems } from '$lib/author/Notifications';
import { pubkey, author } from '$lib/stores/Author';
import TimelineView from '../TimelineView.svelte';
import IconAt from '@tabler/icons-svelte/icons/at';
Expand Down Expand Up @@ -43,6 +43,7 @@
created_at: now()
});
rxNostr.send(event);
lastReadAt.set(event.created_at);
});
async function load() {
Expand Down

0 comments on commit 797c350

Please sign in to comment.