P3 fixes
This commit is contained in:
parent
3b856e94da
commit
5788d3e8ec
10 changed files with 38 additions and 33 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue