Browse Source

get rid of the notes feed on home

allow default home feed setting
imwald
Silberengel 3 months ago
parent
commit
ba6ede9f0c
  1. 2
      package.json
  2. 11
      src/components/NormalFeed/index.tsx

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "jumble-imwald",
"version": "15.0.0",
"version": "16.0.0",
"description": "A user-friendly Nostr client focused on relay feed browsing and relay discovery, forked from Jumble",
"private": true,
"type": "module",

11
src/components/NormalFeed/index.tsx

@ -33,12 +33,17 @@ const NormalFeed = forwardRef<TNoteListRef, { @@ -33,12 +33,17 @@ const NormalFeed = forwardRef<TNoteListRef, {
const { showKinds } = useKindFilter()
const [temporaryShowKinds, setTemporaryShowKinds] = useState(showKinds)
const [listMode, setListMode] = useState<TNoteListMode>(() => {
// For main feed, always default to 'posts' (Notes tab) to show the main content
// Only use stored mode for non-main feeds
// Get stored mode preference
const storedMode = storage.getNoteListMode()
// For main feed, only allow 'posts' or 'postsAndReplies' as valid values
// Default to 'posts' if no valid preference is stored
if (isMainFeed) {
if (storedMode === 'posts' || storedMode === 'postsAndReplies') {
return storedMode
}
return 'posts'
}
const storedMode = storage.getNoteListMode()
// For non-main feeds, use stored mode or default to 'posts'
return storedMode || 'posts'
})
const internalNoteListRef = useRef<TNoteListRef>(null)

Loading…
Cancel
Save