feat: 💨
This commit is contained in:
parent
30da0319ce
commit
977d6789da
1 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ const SHOW_COUNT = 30
|
||||||
const NotificationList = forwardRef((_, ref) => {
|
const NotificationList = forwardRef((_, ref) => {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const { pubkey } = useNostr()
|
const { pubkey } = useNostr()
|
||||||
const { clearNewNotifications: updateReadNotificationTime } = useNotification()
|
const { clearNewNotifications } = useNotification()
|
||||||
const { updateNoteStatsByEvents } = useNoteStats()
|
const { updateNoteStatsByEvents } = useNoteStats()
|
||||||
const [notificationType, setNotificationType] = useState<TNotificationType>('all')
|
const [notificationType, setNotificationType] = useState<TNotificationType>('all')
|
||||||
const [lastReadTime, setLastReadTime] = useState(0)
|
const [lastReadTime, setLastReadTime] = useState(0)
|
||||||
|
|
@ -69,7 +69,7 @@ const NotificationList = forwardRef((_, ref) => {
|
||||||
setNotifications([])
|
setNotifications([])
|
||||||
setShowCount(SHOW_COUNT)
|
setShowCount(SHOW_COUNT)
|
||||||
setLastReadTime(storage.getLastReadNotificationTime(pubkey))
|
setLastReadTime(storage.getLastReadNotificationTime(pubkey))
|
||||||
updateReadNotificationTime()
|
clearNewNotifications()
|
||||||
const relayList = await client.fetchRelayList(pubkey)
|
const relayList = await client.fetchRelayList(pubkey)
|
||||||
|
|
||||||
const { closer, timelineKey } = await client.subscribeTimeline(
|
const { closer, timelineKey } = await client.subscribeTimeline(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue