feat: 💨

This commit is contained in:
codytseng
2025-12-01 10:19:15 +08:00
parent 0c1dab89da
commit 1ec68f5696
2 changed files with 18 additions and 15 deletions

View File

@@ -236,7 +236,7 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
if (storedPinListEvent) {
setPinListEvent(storedPinListEvent)
}
if (storedPinnedUsersEvent !== undefined) {
if (storedPinnedUsersEvent) {
setPinnedUsersEvent(storedPinnedUsersEvent)
}
@@ -348,9 +348,6 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
if (updatedPinnedUsersEvent.id === pinnedUsersEvent.id) {
setPinnedUsersEvent(updatedPinnedUsersEvent)
}
} else {
await indexedDb.putNullReplaceableEvent(account.pubkey, ExtendedKind.PINNED_USERS)
setPinnedUsersEvent(null)
}
const notificationsSeenAt = Math.max(