Merge pull request #919 from h3poteto/fix-872

refs #872 Fix favourite and reblog event
This commit is contained in:
AkiraFukushima 2019-05-19 23:29:04 +09:00 committed by GitHub
commit 58c9a0a61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -450,10 +450,10 @@ const actions: ActionTree<TimelineSpaceState, RootState> = {
commit('TimelineSpace/Contents/DirectMessages/updateToot', status, { root: true })
}
if (state.unreadNotification.local) {
commit('TimelineSpace/Contents/Local/updateToot', state, { root: true })
commit('TimelineSpace/Contents/Local/updateToot', status, { root: true })
}
if (state.unreadNotification.public) {
commit('TimelineSpace/Contents/Public/updateToot', state, { root: true })
commit('TimelineSpace/Contents/Public/updateToot', status, { root: true })
}
return true
}

View File

@ -15,7 +15,7 @@ const actions: ActionTree<TootState, RootState> = {
// Reblog target status is in the data.reblog.
// So I send data.reblog as status for update local timeline.
ipcRenderer.send('fav-rt-action-sound')
dispatch('TimelineSpace/updateTootForAllTimelines', res.data, { root: true })
dispatch('TimelineSpace/updateTootForAllTimelines', res.data.reblog, { root: true })
return res.data.reblog
},
unreblog: async ({ rootState, dispatch }, message: Status) => {