This commit is contained in:
Henry Jameson 2026-09-01 13:46:30 +03:00
commit 5788d3e8ec
10 changed files with 38 additions and 33 deletions

View file

@ -36,7 +36,7 @@ const notificationsFetcher = (credentials) => {
const notifications = response.data
if (older && notifications.length === 0) bottomedOut.value = true
useNotificationsStore().addNewNotifications(response)
useNotificationsStore().addNewNotifications(response, older)
} catch (error) {
if (
error.statusCode === 400 &&
@ -78,7 +78,7 @@ const notificationsFetcher = (credentials) => {
args.timeline = 'notifications'
if (older) {
if (timelineData.minId !== Number.POSITIVE_INFINITY) {
if (timelineData.minId !== '') {
args.maxId = timelineData.minId
}
return await fetchNotifications({ args, older })
@ -86,7 +86,7 @@ const notificationsFetcher = (credentials) => {
// fetch new notifications
if (
sinceId === undefined &&
timelineData.maxId !== Number.POSITIVE_INFINITY
timelineData.maxId !== ''
) {
args.sinceId = timelineData.maxId
} else if (sinceId !== null) {