fix: bug of lost followers
This commit is contained in:
@@ -58,9 +58,8 @@ export function FollowListProvider({ children }: { children: React.ReactNode })
|
||||
}, [accountPubkey])
|
||||
|
||||
const updateFollowListEvent = async (event: Event) => {
|
||||
const isNew = await indexedDb.putReplaceableEvent(event)
|
||||
if (!isNew) return
|
||||
setFollowListEvent(event)
|
||||
const newEvent = await indexedDb.putReplaceableEvent(event)
|
||||
setFollowListEvent(newEvent)
|
||||
}
|
||||
|
||||
const follow = async (pubkey: string) => {
|
||||
|
||||
Reference in New Issue
Block a user