fix: some 🐛
This commit is contained in:
parent
bfba681461
commit
91977d6495
3 changed files with 8 additions and 3 deletions
|
|
@ -108,7 +108,10 @@ export default function NotificationList() {
|
|||
}
|
||||
|
||||
if (notifications.length > 0) {
|
||||
setNotifications((oldNotifications) => [...oldNotifications, ...notifications])
|
||||
setNotifications((oldNotifications) => [
|
||||
...oldNotifications,
|
||||
...notifications.filter((event) => event.pubkey !== pubkey)
|
||||
])
|
||||
}
|
||||
|
||||
setUntil(notifications[notifications.length - 1].created_at - 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue