revert pinned timeline polling logic

This commit is contained in:
taehoon 2019-04-24 08:33:12 -04:00
parent 8095ce8f62
commit 9e22d6212a
1 changed files with 0 additions and 6 deletions

View File

@ -16,12 +16,6 @@ const update = ({store, statuses, timeline, showImmediately, userId}) => {
} }
const fetchAndUpdate = ({store, credentials, timeline = 'friends', older = false, showImmediately = false, userId = false, tag = false, until}) => { const fetchAndUpdate = ({store, credentials, timeline = 'friends', older = false, showImmediately = false, userId = false, tag = false, until}) => {
if (timeline === 'pinned') {
return apiService.fetchPinnedStatuses({ id: userId, credentials })
.then(statuses => {
update({ store, statuses, timeline, showImmediately, userId })
})
}
const args = { timeline, credentials } const args = { timeline, credentials }
const rootState = store.rootState || store.state const rootState = store.rootState || store.state
const timelineData = rootState.statuses.timelines[camelCase(timeline)] const timelineData = rootState.statuses.timelines[camelCase(timeline)]