feat: increase the number of relays used for finding user notes
This commit is contained in:
@@ -74,12 +74,15 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
|
|||||||
setSecondaryStack((prevStack) => {
|
setSecondaryStack((prevStack) => {
|
||||||
if (isCurrentPage(prevStack, url)) return prevStack
|
if (isCurrentPage(prevStack, url)) return prevStack
|
||||||
|
|
||||||
const { newStack } = pushNewPageToStack(
|
const { newStack, newItem } = pushNewPageToStack(
|
||||||
prevStack,
|
prevStack,
|
||||||
url,
|
url,
|
||||||
maxStackSize,
|
maxStackSize,
|
||||||
window.history.state?.index
|
window.history.state?.index
|
||||||
)
|
)
|
||||||
|
if (newItem) {
|
||||||
|
window.history.replaceState({ index: newItem.index, url }, '', url)
|
||||||
|
}
|
||||||
return newStack
|
return newStack
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import Nip05 from '@/components/Nip05'
|
|||||||
import NoteList from '@/components/NoteList'
|
import NoteList from '@/components/NoteList'
|
||||||
import ProfileAbout from '@/components/ProfileAbout'
|
import ProfileAbout from '@/components/ProfileAbout'
|
||||||
import ProfileBanner from '@/components/ProfileBanner'
|
import ProfileBanner from '@/components/ProfileBanner'
|
||||||
|
import ProfileOptions from '@/components/ProfileOptions'
|
||||||
import PubkeyCopy from '@/components/PubkeyCopy'
|
import PubkeyCopy from '@/components/PubkeyCopy'
|
||||||
import QrCodePopover from '@/components/QrCodePopover'
|
import QrCodePopover from '@/components/QrCodePopover'
|
||||||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
|
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
|
||||||
@@ -27,7 +28,6 @@ import { useNostr } from '@/providers/NostrProvider'
|
|||||||
import { useMemo } from 'react'
|
import { useMemo } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import NotFoundPage from '../NotFoundPage'
|
import NotFoundPage from '../NotFoundPage'
|
||||||
import ProfileOptions from '@/components/ProfileOptions'
|
|
||||||
|
|
||||||
export default function ProfilePage({ id, index }: { id?: string; index?: number }) {
|
export default function ProfilePage({ id, index }: { id?: string; index?: number }) {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
@@ -39,7 +39,7 @@ export default function ProfilePage({ id, index }: { id?: string; index?: number
|
|||||||
() =>
|
() =>
|
||||||
relayList.write.length < 4
|
relayList.write.length < 4
|
||||||
? relayList.write.concat(currentRelayUrls).slice(0, 4)
|
? relayList.write.concat(currentRelayUrls).slice(0, 4)
|
||||||
: relayList.write.slice(0, 4),
|
: relayList.write.slice(0, 8),
|
||||||
[relayList, currentRelayUrls]
|
[relayList, currentRelayUrls]
|
||||||
)
|
)
|
||||||
const { pubkey: accountPubkey } = useNostr()
|
const { pubkey: accountPubkey } = useNostr()
|
||||||
|
|||||||
Reference in New Issue
Block a user