added workaround for broken favorites

This commit is contained in:
Henry Jameson 2018-08-16 13:12:31 +03:00
parent ef515056b5
commit ef04a78634
6 changed files with 51 additions and 10 deletions

View file

@ -14,13 +14,13 @@ const update = ({store, statuses, timeline, showImmediately}) => {
})
}
const fetchAndUpdate = ({store, credentials, timeline = 'friends', older = false, showImmediately = false, userId = false, tag = false}) => {
const fetchAndUpdate = ({store, credentials, timeline = 'friends', older = false, showImmediately = false, userId = false, tag = false, until}) => {
const args = { timeline, credentials }
const rootState = store.rootState || store.state
const timelineData = rootState.statuses.timelines[camelCase(timeline)]
if (older) {
args['until'] = timelineData.minVisibleId
args['until'] = until || timelineData.minVisibleId
} else {
args['since'] = timelineData.maxId
}