fix: fix bugs in streaming gap (#1355)

This commit is contained in:
Nolan Lawson 2019-07-22 07:43:36 -07:00 committed by GitHub
parent 734d1d7bbd
commit 1a53ad3fe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ export function createStream (api, instanceName, accessToken, timelineName, firs
fillGap(timelineName, newFirstStatusId)
if (timelineName === 'home') {
// special case - home timeline stream also handles notifications
let newFirstNotificationId = store.getFirstTimelineItemId(instanceName, timelineName)
let newFirstNotificationId = store.getFirstTimelineItemId(instanceName, 'notifications')
fillGap('notifications', newFirstNotificationId)
}
}

View file

@ -39,7 +39,7 @@ export async function getTimeline (instanceName, accessToken, timeline, maxId, s
let params = {}
if (since) {
params.since = since
params.since_id = since
}
if (maxId) {