feat: bookmarks (#279)
This commit is contained in:
parent
085adeb096
commit
7876f26d0c
13 changed files with 390 additions and 15 deletions
|
|
@ -170,6 +170,20 @@ export function FeedProvider({ children }: { children: React.ReactNode }) {
|
|||
})
|
||||
return setIsReady(true)
|
||||
}
|
||||
if (feedType === 'bookmarks') {
|
||||
if (!options.pubkey) {
|
||||
return setIsReady(true)
|
||||
}
|
||||
|
||||
const newFeedInfo = { feedType }
|
||||
setFeedInfo(newFeedInfo)
|
||||
feedInfoRef.current = newFeedInfo
|
||||
storage.setFeedInfo(newFeedInfo, pubkey)
|
||||
|
||||
setRelayUrls([])
|
||||
setFilter({})
|
||||
return setIsReady(true)
|
||||
}
|
||||
if (feedType === 'temporary') {
|
||||
const urls = options.temporaryRelayUrls ?? temporaryRelayUrls
|
||||
if (!urls.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue