bump version: rebuild old view

This commit is contained in:
hzrd149 2023-09-10 12:19:45 -05:00
parent a3a7b8c219
commit aeea180241
14 changed files with 25 additions and 57 deletions

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Add share button to stream view

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Sort search results by follower count

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Show embedded badges in stream cards and timelines

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Clean up user reactions view

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Show list embeds in notes

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Rebuild notifications view

View File

@ -1,5 +0,0 @@
---
"nostrudel": patch
---
Fix threads not loading when navigating directly to them

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Add content warning switch when writing note

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Add articles tab to user view

View File

@ -1,5 +0,0 @@
---
"nostrudel": minor
---
Show stream goal zaps in stream chat

View File

@ -1,5 +1,23 @@
# nostrudel
## 0.27.0
### Minor Changes
- 94cd156: Add share button to stream view
- 03fb661: Sort search results by follower count
- cbb3aa5: Show embedded badges in stream cards and timelines
- 3d5d234: Clean up user reactions view
- 6b4fd8a: Show list embeds in notes
- b561568: Rebuild notifications view
- 409f219: Add content warning switch when writing note
- 076b89e: Add articles tab to user view
- 094a6fb: Show stream goal zaps in stream chat
### Patch Changes
- 81e86c9: Fix threads not loading when navigating directly to them
## 0.26.0
### Minor Changes

View File

@ -1,6 +1,6 @@
{
"name": "nostrudel",
"version": "0.26.0",
"version": "0.27.0",
"private": true,
"license": "MIT",
"scripts": {

View File

@ -1,10 +1,10 @@
import { PropsWithChildren, createContext, useContext, useEffect, useMemo } from "react";
import { truncatedId } from "../helpers/nostr/events";
import { Kind } from "nostr-tools";
import { useReadRelayUrls } from "../hooks/use-client-relays";
import { useCurrentAccount } from "../hooks/use-current-account";
import { TimelineLoader } from "../classes/timeline-loader";
import timelineCacheService from "../services/timeline-cache";
import { Kind } from "nostr-tools";
type NotificationTimelineContextType = {
timeline?: TimelineLoader;
@ -25,15 +25,15 @@ export default function NotificationTimelineProvider({ children }: PropsWithChil
const timeline = useMemo(() => {
return account?.pubkey
? timelineCacheService.createTimeline(`${truncatedId(account?.pubkey ?? "anon")}-notification`)
? timelineCacheService.createTimeline(`${account?.pubkey ?? "anon"}-notification`)
: undefined;
}, [account?.pubkey]);
useEffect(() => {
if (timeline && account) {
if (timeline && account?.pubkey) {
timeline.setQuery([{ "#p": [account?.pubkey], kinds: [Kind.Text, Kind.Repost, Kind.Reaction, Kind.Zap] }]);
}
}, [account, timeline]);
}, [account?.pubkey, timeline]);
useEffect(() => {
timeline?.setRelays(readRelays);

View File

@ -37,7 +37,7 @@ const Kind1Notification = forwardRef<HTMLDivElement, { event: NostrEvent }>(({ e
<Timestamp timestamp={event.created_at} />
</NoteLink>
</Flex>
{refs.replyId && <EmbedEventPointer pointer={{ type: "note", data: refs.replyId }} />}
<EmbedEventPointer pointer={{ type: "note", data: refs.replyId }} />
<NoteContents event={event} mt="2" />
</Card>
);