diff options
| author | shpuld <shp@cock.li> | 2017-11-21 16:12:47 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2017-11-21 16:12:47 +0200 |
| commit | fc1736618b4e1a9f178c0ae287754c6ac1244b08 (patch) | |
| tree | 08d5d4d05ddce8c9ec8f5ff48e55e1e4697f60c7 /src/modules/statuses.js | |
| parent | 80203636803c3035a46d0d82c7778e4aff8d2612 (diff) | |
attempt to recognize when holes in timeline for various reasons, clear timeline and fetch older when showing new to get rid of holes
Diffstat (limited to 'src/modules/statuses.js')
| -rw-r--r-- | src/modules/statuses.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index d954b023..82a7eda1 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -9,6 +9,7 @@ export const defaultState = { notifications: [], favorites: new Set(), error: false, + flushMarker: 0, timelines: { mentions: { statuses: [], @@ -422,6 +423,9 @@ export const mutations = { each(notifications, (notification) => { notification.seen = true }) + }, + queueFlush (state, { timeline, id }) { + state.timelines[timeline].flushMarker = id } } @@ -458,6 +462,9 @@ const statuses = { // Optimistic retweeting... commit('setRetweeted', { status, value: true }) apiService.retweet({ id: status.id, credentials: rootState.users.currentUser.credentials }) + }, + queueFlush ({ rootState, commit }, { timeline, id }) { + commit('queueFlush', { timeline, id }) } }, mutations |
