fix: bug of lost followers
This commit is contained in:
parent
d5f46690c4
commit
5e3fd93a23
4 changed files with 14 additions and 17 deletions
|
|
@ -47,9 +47,9 @@ export function MuteListProvider({ children }: { children: React.ReactNode }) {
|
|||
})
|
||||
const muteEvent = getLatestEvent(events) as Event | undefined
|
||||
if (muteEvent) {
|
||||
await indexedDb.putReplaceableEvent(muteEvent)
|
||||
setMuteListEvent(muteEvent)
|
||||
const tags = await extractMuteTags(muteEvent)
|
||||
const newMuteEvent = await indexedDb.putReplaceableEvent(muteEvent)
|
||||
setMuteListEvent(newMuteEvent)
|
||||
const tags = await extractMuteTags(newMuteEvent)
|
||||
setTags(tags)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue