mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-17 21:31:43 +01:00
bump version: rebuild old view
This commit is contained in:
parent
a3a7b8c219
commit
aeea180241
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Add share button to stream view
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Sort search results by follower count
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Show embedded badges in stream cards and timelines
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Clean up user reactions view
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Show list embeds in notes
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Rebuild notifications view
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": patch
|
||||
---
|
||||
|
||||
Fix threads not loading when navigating directly to them
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Add content warning switch when writing note
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Add articles tab to user view
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Show stream goal zaps in stream chat
|
18
CHANGELOG.md
18
CHANGELOG.md
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nostrudel",
|
||||
"version": "0.26.0",
|
||||
"version": "0.27.0",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
@ -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);
|
||||
|
@ -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>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user